-rw-r--r-- | noncore/settings/netsystemtime/formattabwidget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/settings/netsystemtime/formattabwidget.cpp b/noncore/settings/netsystemtime/formattabwidget.cpp index 7d01bff..a037881 100644 --- a/noncore/settings/netsystemtime/formattabwidget.cpp +++ b/noncore/settings/netsystemtime/formattabwidget.cpp | |||
@@ -57,39 +57,39 @@ FormatTabWidget::FormatTabWidget( QWidget *parent ) | |||
57 | layout->setMargin( 2 ); | 57 | layout->setMargin( 2 ); |
58 | layout->setSpacing( 4 ); | 58 | layout->setSpacing( 4 ); |
59 | 59 | ||
60 | // Time format selector | 60 | // Time format selector |
61 | layout->addWidget( new QLabel( tr( "Time format" ), container ), 0, 0 ); | 61 | layout->addWidget( new QLabel( tr( "Time format" ), container ), 0, 0 ); |
62 | cbAppletFormat = new QComboBox( container ); | 62 | cbAppletFormat = new QComboBox( container ); |
63 | cbAppletFormat->insertItem( tr( "hh:mm" ), 0 ); | 63 | cbAppletFormat->insertItem( tr( "hh:mm" ), 0 ); |
64 | cbAppletFormat->insertItem( tr( "D/M hh:mm" ), 1 ); | 64 | cbAppletFormat->insertItem( tr( "D/M hh:mm" ), 1 ); |
65 | cbAppletFormat->insertItem( tr( "M/D hh:mm" ), 2 ); | 65 | cbAppletFormat->insertItem( tr( "M/D hh:mm" ), 2 ); |
66 | layout->addWidget( cbAppletFormat, 0, 1 ); | 66 | layout->addWidget( cbAppletFormat, 0, 1 ); |
67 | 67 | ||
68 | // 12/24 hour selector | 68 | // 12/24 hour selector |
69 | layout->addWidget( new QLabel( tr( "12/24 hour" ), container ), 1, 0 ); | 69 | layout->addWidget( new QLabel( tr( "12/24 hour" ), container ), 1, 0 ); |
70 | cbAmpm = new QComboBox( container ); | 70 | cbAmpm = new QComboBox( container ); |
71 | cbAmpm->insertItem( tr( "24 hour" ), 0 ); | 71 | cbAmpm->insertItem( tr( "24 hour" ), 0 ); |
72 | cbAmpm->insertItem( tr( "12 hour" ), 1 ); | 72 | cbAmpm->insertItem( tr( "12 hour" ), 1 ); |
73 | connect( cbAmpm, SIGNAL(activated(int)), this, SIGNAL(show12HourTime(int)) ); | 73 | connect( cbAmpm, SIGNAL(activated( int)), this, SIGNAL(show12HourTime( int)) ); |
74 | layout->addWidget( cbAmpm, 1, 1 ); | 74 | layout->addWidget( cbAmpm, 1, 1 ); |
75 | 75 | ||
76 | // Date format selector | 76 | // Date format selector |
77 | layout->addWidget( new QLabel( tr( "Date format" ), container ), 2, 0 ); | 77 | layout->addWidget( new QLabel( tr( "Date format" ), container ), 2, 0 ); |
78 | cbDateFormat = new QComboBox( container ); | 78 | cbDateFormat = new QComboBox( container ); |
79 | connect( cbDateFormat, SIGNAL(activated(int)), this, SLOT(slotDateFormatChanged(int)) ); | 79 | connect( cbDateFormat, SIGNAL(activated( int)), this, SLOT(slotDateFormatChanged( int)) ); |
80 | layout->addWidget( cbDateFormat, 2, 1 ); | 80 | layout->addWidget( cbDateFormat, 2, 1 ); |
81 | 81 | ||
82 | // Week starts on selector | 82 | // Week starts on selector |
83 | layout->addWidget( new QLabel( tr( "Weeks start on" ), container ), 3, 0 ); | 83 | layout->addWidget( new QLabel( tr( "Weeks start on" ), container ), 3, 0 ); |
84 | cbWeekStart = new QComboBox( container ); | 84 | cbWeekStart = new QComboBox( container ); |
85 | cbWeekStart->insertItem( tr( "Sunday" ), 0 ); | 85 | cbWeekStart->insertItem( tr( "Sunday" ), 0 ); |
86 | cbWeekStart->insertItem( tr( "Monday" ), 1 ); | 86 | cbWeekStart->insertItem( tr( "Monday" ), 1 ); |
87 | connect( cbWeekStart, SIGNAL(activated(int)), this, SIGNAL(weekStartChanged(int)) ); | 87 | connect( cbWeekStart, SIGNAL(activated(int)), this, SIGNAL(weekStartChanged(int)) ); |
88 | layout->addWidget( cbWeekStart, 3, 1 ); | 88 | layout->addWidget( cbWeekStart, 3, 1 ); |
89 | 89 | ||
90 | // Initialize values | 90 | // Initialize values |
91 | Config config( "qpe" ); | 91 | Config config( "qpe" ); |
92 | config.setGroup( "Date" ); | 92 | config.setGroup( "Date" ); |
93 | cbAppletFormat->setCurrentItem( config.readNumEntry( "ClockApplet", 0 ) ); | 93 | cbAppletFormat->setCurrentItem( config.readNumEntry( "ClockApplet", 0 ) ); |
94 | 94 | ||
95 | DateFormat df(QChar(config.readEntry("Separator", "/")[0]), | 95 | DateFormat df(QChar(config.readEntry("Separator", "/")[0]), |