Commit ff1328b8 authored by Bernhard Landauer's avatar Bernhard Landauer

[timedate] re-order

parent 6f67e871
......@@ -22,7 +22,6 @@
#include "TimeZoneDialog.h"
#include <QtCore/QTimeZone>
#include <QDebug>
QString
TimeDateCommon::getName()
......
......@@ -113,7 +113,7 @@ void
TimeDatePage::save()
{
TimeDateCommon::save( ui, m_timeDateService, m_isTimeEdited, m_isDateEdited, m_timeZone );
this -> setApplyEnabled( this, false );
m_isTimeEdited = false;
m_isDateEdited = false;
this -> setApplyEnabled( this, false );
}
......@@ -26,10 +26,9 @@ TimeDateService::TimeDateService( QObject* parent ) :
QObject( parent )
{
m_dbusInterface = new QDBusInterface( "org.freedesktop.timedate1",
"/org/freedesktop/timedate1",
"org.freedesktop.timedate1",
QDBusConnection::systemBus(),
0 );
"/org/freedesktop/timedate1",
"org.freedesktop.timedate1",
QDBusConnection::systemBus() );
}
......
......@@ -45,7 +45,8 @@ TimeZoneWidget::TimeZoneWidget( QWidget* parent ) :
// Zone images
QStringList zones = QString( ZONES ).split( " ", QString::SkipEmptyParts );
for ( int i = 0; i < zones.size(); ++i )
m_timeZoneImages.append( QImage( ":/images/timezone_" + zones.at( i ) + ".png" ).scaled( X_SIZE, Y_SIZE, Qt::IgnoreAspectRatio, Qt::SmoothTransformation ) );
m_timeZoneImages.append( QImage( ":/images/timezone_" + zones.at( i ) + ".png" )
.scaled( X_SIZE, Y_SIZE, Qt::IgnoreAspectRatio, Qt::SmoothTransformation ) );
LocaleGlobal::init();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment