-rw-r--r-- | bin/kdepim/kaddressbook/germantranslation.txt | 10 | ||||
-rw-r--r-- | kaddressbook/views/contactlistview.cpp | 2 | ||||
-rw-r--r-- | kaddressbook/xxportselectdialog.cpp | 8 | ||||
-rw-r--r-- | korganizer/calendarview.cpp | 14 | ||||
-rw-r--r-- | korganizer/koeditordetails.cpp | 7 | ||||
-rw-r--r-- | korganizer/mainwindow.cpp | 5 |
6 files changed, 36 insertions, 10 deletions
diff --git a/bin/kdepim/kaddressbook/germantranslation.txt b/bin/kdepim/kaddressbook/germantranslation.txt index b5ad650..08efcf6 100644 --- a/bin/kdepim/kaddressbook/germantranslation.txt +++ b/bin/kdepim/kaddressbook/germantranslation.txt | |||
@@ -514,39 +514,49 @@ | |||
514 | { "Check the categories whose members you want to export.","Wähle die Kategorien zum Export aus." }, | 514 | { "Check the categories whose members you want to export.","Wähle die Kategorien zum Export aus." }, |
515 | { "Sorting","Sortieren" }, | 515 | { "Sorting","Sortieren" }, |
516 | { "Criterion:","Merkmal:" }, | 516 | { "Criterion:","Merkmal:" }, |
517 | { "Order:","Reihenfolge:" }, | 517 | { "Order:","Reihenfolge:" }, |
518 | { "Ascending","Aufsteigend" }, | 518 | { "Ascending","Aufsteigend" }, |
519 | { "Descending","Absteigend" }, | 519 | { "Descending","Absteigend" }, |
520 | { "Save file","Datei speichern" }, | 520 | { "Save file","Datei speichern" }, |
521 | { "Error","Fehler" }, | 521 | { "Error","Fehler" }, |
522 | { "Unable to export contacts.","Exportieren der Kontakte geht nicht." }, | 522 | { "Unable to export contacts.","Exportieren der Kontakte geht nicht." }, |
523 | { "\nNo unsaved changes detected!\nNothing will be saved!","\nKeine ungespeicherten\nÄnderungen erkannt!\nNichts wird gespeichert!" }, | 523 | { "\nNo unsaved changes detected!\nNothing will be saved!","\nKeine ungespeicherten\nÄnderungen erkannt!\nNichts wird gespeichert!" }, |
524 | { "Manage new categories...","Verwalte neue Kategorien..." }, | 524 | { "Manage new categories...","Verwalte neue Kategorien..." }, |
525 | { "&File","Datei" }, | 525 | { "&File","Datei" }, |
526 | { "&Edit","Bearbeite" }, | 526 | { "&Edit","Bearbeite" }, |
527 | { "&View","Ansichten" }, | 527 | { "&View","Ansichten" }, |
528 | { "&Settings","Konfiguration" }, | 528 | { "&Settings","Konfiguration" }, |
529 | { "&Change selected","Ändere Selekt." }, | 529 | { "&Change selected","Ändere Selekt." }, |
530 | { "&Help","Hilfe" }, | 530 | { "&Help","Hilfe" }, |
531 | { "Remove sync info","Entferne Sync Info" }, | 531 | { "Remove sync info","Entferne Sync Info" }, |
532 | { "For all profiles","Für alle Profile" }, | 532 | { "For all profiles","Für alle Profile" }, |
533 | { "&Change","Ändere" }, | 533 | { "&Change","Ändere" }, |
534 | { "Import xml (Qtopia)...","Importiere xml (Qtopia)..." }, | 534 | { "Import xml (Qtopia)...","Importiere xml (Qtopia)..." }, |
535 | { "Export xml (Qtopia)...","Exportiere xml (Qtopia)..." }, | 535 | { "Export xml (Qtopia)...","Exportiere xml (Qtopia)..." }, |
536 | { "Export to phone","Exportiere aufs Handy..." }, | 536 | { "Export to phone","Exportiere aufs Handy..." }, |
537 | { "Which contacts do you want to select?","Welche Kontakte möchten Sie wählen?" }, | 537 | { "Which contacts do you want to select?","Welche Kontakte möchten Sie wählen?" }, |
538 | { "&Modify","Ändere" }, | 538 | { "&Modify","Ändere" }, |
539 | { "Choose which contacts to select","Bitte Kontakte auswählen!" }, | 539 | { "Choose which contacts to select","Bitte Kontakte auswählen!" }, |
540 | { "After importing/loading/syncing\nthere may be new categories in\naddressees\nwhich are not in the category list.\nPlease choose what to do:\n ","Nach dem Importieren/Laden/Syncen\nkann es neue Kategorien in den \nKontakten geben, die nicht\nin der Kategorieliste enthalten sind.\nBitte wählen Sie, was passieren soll:\n " }, | 540 | { "After importing/loading/syncing\nthere may be new categories in\naddressees\nwhich are not in the category list.\nPlease choose what to do:\n ","Nach dem Importieren/Laden/Syncen\nkann es neue Kategorien in den \nKontakten geben, die nicht\nin der Kategorieliste enthalten sind.\nBitte wählen Sie, was passieren soll:\n " }, |
541 | { "Manage new Categories","Verwalte neue Kategorien" }, | 541 | { "Manage new Categories","Verwalte neue Kategorien" }, |
542 | { "Add to category list","Füge zur Kategorieliste hinzu" }, | 542 | { "Add to category list","Füge zur Kategorieliste hinzu" }, |
543 | { "Remove from addressees","Entferne von den Kontakten" }, | 543 | { "Remove from addressees","Entferne von den Kontakten" }, |
544 | { "New categories not in list:","Kategorien, die nicht in der Liste sind:" }, | 544 | { "New categories not in list:","Kategorien, die nicht in der Liste sind:" }, |
545 | { "A&dd","Hinzufügen" }, | 545 | { "A&dd","Hinzufügen" }, |
546 | { "Please read Help-Sync Howto\nto know what settings to use.","Bitte lese Hilfe-Sync Howto\num zu erfahren welche Einstellungen\ndie richtigen sind." }, | ||
547 | { "NOTE: This will remove all old\ncontact data on phone!","ACHTUNG: Das löscht alle alten\nKontakt Daten auf dem Handy!" }, | ||
548 | { "Export to mobile phone!","Exportiere auf das Handy!" }, | ||
549 | { "Export to phone options","Export ans Handy Optionen" }, | ||
550 | { "Writing to phone...","Sende Daten ans Handy..." }, | ||
551 | { " This may take 1-3 minutes!"," Das kann 1-3 Minuten dauern!" }, | ||
552 | { "Retry","Nochmal versuchen" }, | ||
553 | { "KDE/Pim phone access","KDE/Pim Handy Zugriff" }, | ||
554 | { "Error accessing device!\nPlease turn on connection\nand retry!","Fehler beim Zugriff auf das Gerät!\nBitte die Verbindung aktivieren\nund nochmal versuchen!" }, | ||
555 | { "Error exporting to phone!","Fehler beim Export auf das Handy!" }, | ||
546 | { "","" }, | 556 | { "","" }, |
547 | { "","" }, | 557 | { "","" }, |
548 | { "","" }, | 558 | { "","" }, |
549 | { "","" }, | 559 | { "","" }, |
550 | { "","" }, | 560 | { "","" }, |
551 | { "","" }, | 561 | { "","" }, |
552 | { "","" }, \ No newline at end of file | 562 | { "","" }, \ No newline at end of file |
diff --git a/kaddressbook/views/contactlistview.cpp b/kaddressbook/views/contactlistview.cpp index ad43970..23b091c 100644 --- a/kaddressbook/views/contactlistview.cpp +++ b/kaddressbook/views/contactlistview.cpp | |||
@@ -160,65 +160,65 @@ ContactListViewItem::ContactListViewItem(const KABC::Addressee &a, | |||
160 | ContactListView *parent, | 160 | ContactListView *parent, |
161 | KABC::AddressBook *doc, | 161 | KABC::AddressBook *doc, |
162 | const KABC::Field::List &fields ) | 162 | const KABC::Field::List &fields ) |
163 | : KListViewItem(parent), mAddressee(a), mFields( fields ), | 163 | : KListViewItem(parent), mAddressee(a), mFields( fields ), |
164 | parentListView( parent ), mDocument(doc) | 164 | parentListView( parent ), mDocument(doc) |
165 | { | 165 | { |
166 | refresh(); | 166 | refresh(); |
167 | } | 167 | } |
168 | 168 | ||
169 | QString ContactListViewItem::key(int column, bool ascending) const | 169 | QString ContactListViewItem::key(int column, bool ascending) const |
170 | { | 170 | { |
171 | #ifndef DESKTOP_VERSION | 171 | #ifndef DESKTOP_VERSION |
172 | int lan = KGlobal::locale()->language(); | 172 | int lan = KGlobal::locale()->language(); |
173 | //qDebug("language %d ", lan); | 173 | //qDebug("language %d ", lan); |
174 | if ( lan == 1 ) { //GERMAN | 174 | if ( lan == 1 ) { //GERMAN |
175 | QString ret = QListViewItem::key(column, ascending).lower().utf8(); | 175 | QString ret = QListViewItem::key(column, ascending).lower().utf8(); |
176 | int start = -1; | 176 | int start = -1; |
177 | while ( (start = ret.find( 'ä', start+1)) > 0 ) { | 177 | while ( (start = ret.find( 'ä', start+1)) > 0 ) { |
178 | ret.at(start-1) = 'a'; | 178 | ret.at(start-1) = 'a'; |
179 | } | 179 | } |
180 | start = -1; | 180 | start = -1; |
181 | while ( (start = ret.find( 'ö', start+1)) > 0 ) { | 181 | while ( (start = ret.find( 'ö', start+1)) > 0 ) { |
182 | ret.at(start-1) = 'o'; | 182 | ret.at(start-1) = 'o'; |
183 | } | 183 | } |
184 | start = -1; | 184 | start = -1; |
185 | while ( (start = ret.find( 'ü', start+1)) > 0 ) { | 185 | while ( (start = ret.find( 'ü', start+1)) > 0 ) { |
186 | ret.at(start-1) = 'o'; | 186 | ret.at(start-1) = 'o'; |
187 | } | 187 | } |
188 | start = -1; | 188 | start = -1; |
189 | while ( (start = ret.find( 'ß', start+1)) > 0 ) { | 189 | while ( (start = ret.find( 'ß', start+1)) > 0 ) { |
190 | ret.at(start-1) = 's'; | 190 | ret.at(start-1) = 's'; |
191 | } | 191 | } |
192 | qDebug("conv string %s ", ret.latin1()); | 192 | //qDebug("conv string %s ", ret.latin1()); |
193 | 193 | ||
194 | return ret; | 194 | return ret; |
195 | 195 | ||
196 | } | 196 | } |
197 | else | 197 | else |
198 | #endif | 198 | #endif |
199 | return QListViewItem::key(column, ascending).lower(); | 199 | return QListViewItem::key(column, ascending).lower(); |
200 | } | 200 | } |
201 | 201 | ||
202 | void ContactListViewItem::paintCell(QPainter * p, | 202 | void ContactListViewItem::paintCell(QPainter * p, |
203 | const QColorGroup & cg, | 203 | const QColorGroup & cg, |
204 | int column, | 204 | int column, |
205 | int width, | 205 | int width, |
206 | int align) | 206 | int align) |
207 | { | 207 | { |
208 | KListViewItem::paintCell(p, cg, column, width, align); | 208 | KListViewItem::paintCell(p, cg, column, width, align); |
209 | 209 | ||
210 | if ( !p ) | 210 | if ( !p ) |
211 | return; | 211 | return; |
212 | 212 | ||
213 | if (parentListView->singleLine()) { | 213 | if (parentListView->singleLine()) { |
214 | p->setPen( parentListView->alternateColor() ); | 214 | p->setPen( parentListView->alternateColor() ); |
215 | p->drawLine( 0, height() - 1, width, height() - 1 ); | 215 | p->drawLine( 0, height() - 1, width, height() - 1 ); |
216 | } | 216 | } |
217 | } | 217 | } |
218 | 218 | ||
219 | 219 | ||
220 | ContactListView *ContactListViewItem::parent() | 220 | ContactListView *ContactListViewItem::parent() |
221 | { | 221 | { |
222 | return parentListView; | 222 | return parentListView; |
223 | } | 223 | } |
224 | 224 | ||
diff --git a/kaddressbook/xxportselectdialog.cpp b/kaddressbook/xxportselectdialog.cpp index ab95d5f..6282453 100644 --- a/kaddressbook/xxportselectdialog.cpp +++ b/kaddressbook/xxportselectdialog.cpp | |||
@@ -6,64 +6,65 @@ | |||
6 | This program is free software; you can redistribute it and/or modify | 6 | This program is free software; you can redistribute it and/or modify |
7 | it under the terms of the GNU General Public License as published by | 7 | it under the terms of the GNU General Public License as published by |
8 | the Free Software Foundation; either version 2 of the License, or | 8 | the Free Software Foundation; either version 2 of the License, or |
9 | (at your option) any later version. | 9 | (at your option) any later version. |
10 | 10 | ||
11 | This program is distributed in the hope that it will be useful, | 11 | This program is distributed in the hope that it will be useful, |
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 | GNU General Public License for more details. | 14 | GNU General Public License for more details. |
15 | 15 | ||
16 | You should have received a copy of the GNU General Public License | 16 | You should have received a copy of the GNU General Public License |
17 | along with this program; if not, write to the Free Software | 17 | along with this program; if not, write to the Free Software |
18 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 18 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
19 | 19 | ||
20 | As a special exception, permission is given to link this program | 20 | As a special exception, permission is given to link this program |
21 | with any edition of Qt, and distribute the resulting executable, | 21 | with any edition of Qt, and distribute the resulting executable, |
22 | without including the source code for Qt in the source distribution. | 22 | without including the source code for Qt in the source distribution. |
23 | */ | 23 | */ |
24 | 24 | ||
25 | /* | 25 | /* |
26 | Enhanced Version of the file for platform independent KDE tools. | 26 | Enhanced Version of the file for platform independent KDE tools. |
27 | Copyright (c) 2004 Ulf Schenk | 27 | Copyright (c) 2004 Ulf Schenk |
28 | 28 | ||
29 | $Id$ | 29 | $Id$ |
30 | */ | 30 | */ |
31 | 31 | ||
32 | #include <kabc/addressbook.h> | 32 | #include <kabc/addressbook.h> |
33 | #include <kapplication.h> | 33 | #include <kapplication.h> |
34 | #include <kcombobox.h> | 34 | #include <kcombobox.h> |
35 | #include <klocale.h> | 35 | #include <klocale.h> |
36 | #include <kglobal.h> | 36 | #include <kglobal.h> |
37 | 37 | ||
38 | #include <qapplication.h> | ||
38 | #include <qbuttongroup.h> | 39 | #include <qbuttongroup.h> |
39 | #include <qcombobox.h> | 40 | #include <qcombobox.h> |
40 | #include <qheader.h> | 41 | #include <qheader.h> |
41 | #include <qlabel.h> | 42 | #include <qlabel.h> |
42 | #include <qlayout.h> | 43 | #include <qlayout.h> |
43 | #include <qlistview.h> | 44 | #include <qlistview.h> |
44 | #include <qpushbutton.h> | 45 | #include <qpushbutton.h> |
45 | #include <qradiobutton.h> | 46 | #include <qradiobutton.h> |
46 | #include <qstringlist.h> | 47 | #include <qstringlist.h> |
47 | #include <qwhatsthis.h> | 48 | #include <qwhatsthis.h> |
48 | 49 | ||
49 | #include "kabcore.h" | 50 | #include "kabcore.h" |
50 | #include "kabprefs.h" | 51 | #include "kabprefs.h" |
51 | 52 | ||
52 | #include "xxportselectdialog.h" | 53 | #include "xxportselectdialog.h" |
53 | 54 | ||
54 | XXPortSelectDialog::XXPortSelectDialog( KABCore *core, bool sort, | 55 | XXPortSelectDialog::XXPortSelectDialog( KABCore *core, bool sort, |
55 | QWidget* parent, const char* name ) | 56 | QWidget* parent, const char* name ) |
56 | : KDialogBase( Plain, i18n( "Choose which contacts to select" ), Help | Ok | Cancel, | 57 | : KDialogBase( Plain, i18n( "Choose which contacts to select" ), Help | Ok | Cancel, |
57 | Ok, parent, name, true, true ), mCore( core ), | 58 | Ok, parent, name, true, true ), mCore( core ), |
58 | mUseSorting( sort ) | 59 | mUseSorting( sort ) |
59 | { | 60 | { |
60 | initGUI(); | 61 | initGUI(); |
61 | 62 | ||
62 | connect( mFiltersCombo, SIGNAL( activated( int ) ), | 63 | connect( mFiltersCombo, SIGNAL( activated( int ) ), |
63 | SLOT( filterChanged( int ) ) ); | 64 | SLOT( filterChanged( int ) ) ); |
64 | connect( mCategoriesView, SIGNAL( clicked( QListViewItem* ) ), | 65 | connect( mCategoriesView, SIGNAL( clicked( QListViewItem* ) ), |
65 | SLOT( categoryClicked( QListViewItem* ) ) ); | 66 | SLOT( categoryClicked( QListViewItem* ) ) ); |
66 | 67 | ||
67 | // setup filters | 68 | // setup filters |
68 | #ifndef KAB_EMBEDDED | 69 | #ifndef KAB_EMBEDDED |
69 | mFilters = Filter::restore( kapp->config(), "Filter" ); | 70 | mFilters = Filter::restore( kapp->config(), "Filter" ); |
@@ -216,73 +217,78 @@ void XXPortSelectDialog::initGUI() | |||
216 | groupLayout->setAlignment( Qt::AlignTop ); | 217 | groupLayout->setAlignment( Qt::AlignTop ); |
217 | 218 | ||
218 | mUseWholeBook = new QRadioButton( i18n( "&All" ), mButtonGroup ); | 219 | mUseWholeBook = new QRadioButton( i18n( "&All" ), mButtonGroup ); |
219 | mUseWholeBook->setChecked( true ); | 220 | mUseWholeBook->setChecked( true ); |
220 | QWhatsThis::add( mUseWholeBook, i18n( "Select the entire address book" ) ); | 221 | QWhatsThis::add( mUseWholeBook, i18n( "Select the entire address book" ) ); |
221 | groupLayout->addWidget( mUseWholeBook, 0, 0 ); | 222 | groupLayout->addWidget( mUseWholeBook, 0, 0 ); |
222 | 223 | ||
223 | mUseSelection = new QRadioButton( i18n( "&Selected" ), mButtonGroup ); | 224 | mUseSelection = new QRadioButton( i18n( "&Selected" ), mButtonGroup ); |
224 | QWhatsThis::add( mUseSelection, i18n( "Only contacts selected in KAddressBook.\n" | 225 | QWhatsThis::add( mUseSelection, i18n( "Only contacts selected in KAddressBook.\n" |
225 | "This option is disabled if no contacts are selected." ) ); | 226 | "This option is disabled if no contacts are selected." ) ); |
226 | groupLayout->addWidget( mUseSelection, 1, 0 ); | 227 | groupLayout->addWidget( mUseSelection, 1, 0 ); |
227 | 228 | ||
228 | mUseFilters = new QRadioButton( i18n( "By matching &filter" ), mButtonGroup ); | 229 | mUseFilters = new QRadioButton( i18n( "By matching &filter" ), mButtonGroup ); |
229 | QWhatsThis::add( mUseFilters, i18n( "Only contacts matching the selected filter.\n" | 230 | QWhatsThis::add( mUseFilters, i18n( "Only contacts matching the selected filter.\n" |
230 | "This option is disabled if you haven't defined any filters" ) ); | 231 | "This option is disabled if you haven't defined any filters" ) ); |
231 | groupLayout->addWidget( mUseFilters, 2, 0 ); | 232 | groupLayout->addWidget( mUseFilters, 2, 0 ); |
232 | 233 | ||
233 | mUseCategories = new QRadioButton( i18n( "By Cate&gories" ), mButtonGroup ); | 234 | mUseCategories = new QRadioButton( i18n( "By Cate&gories" ), mButtonGroup ); |
234 | QWhatsThis::add( mUseCategories, i18n( "Only contacts who are members of a category that is checked on the list to the left.\n" | 235 | QWhatsThis::add( mUseCategories, i18n( "Only contacts who are members of a category that is checked on the list to the left.\n" |
235 | "This option is disabled if you have no categories." ) ); | 236 | "This option is disabled if you have no categories." ) ); |
236 | groupLayout->addWidget( mUseCategories, 3, 0 ); | 237 | groupLayout->addWidget( mUseCategories, 3, 0 ); |
237 | 238 | ||
238 | mFiltersCombo = new QComboBox( false, mButtonGroup ); | 239 | mFiltersCombo = new QComboBox( false, mButtonGroup ); |
239 | QWhatsThis::add( mFiltersCombo, i18n( "Select a filter to decide which contacts to select." ) ); | 240 | QWhatsThis::add( mFiltersCombo, i18n( "Select a filter to decide which contacts to select." ) ); |
240 | groupLayout->addWidget( mFiltersCombo, 2, 1 ); | 241 | groupLayout->addWidget( mFiltersCombo, 2, 1 ); |
241 | 242 | ||
242 | mCategoriesView = new QListView( mButtonGroup ); | 243 | mCategoriesView = new QListView( mButtonGroup ); |
243 | mCategoriesView->addColumn( "" ); | 244 | mCategoriesView->addColumn( "" ); |
244 | mCategoriesView->header()->hide(); | 245 | mCategoriesView->header()->hide(); |
245 | QWhatsThis::add( mCategoriesView, i18n( "Check the categories whose members you want to select." ) ); | 246 | QWhatsThis::add( mCategoriesView, i18n( "Check the categories whose members you want to select." ) ); |
246 | groupLayout->addWidget( mCategoriesView, 3, 1 ); | 247 | groupLayout->addWidget( mCategoriesView, 3, 1 ); |
247 | 248 | ||
249 | // if (QApplication::desktop()->height() == 480 ) | ||
250 | // mCategoriesView->setMaximumHeight( 240 ); | ||
248 | topLayout->addWidget( mButtonGroup ); | 251 | topLayout->addWidget( mButtonGroup ); |
249 | 252 | ||
250 | QButtonGroup *sortingGroup = new QButtonGroup( i18n( "Sorting" ), page ); | 253 | QButtonGroup *sortingGroup = new QButtonGroup( i18n( "Sorting" ), page ); |
251 | sortingGroup->setColumnLayout( 0, Qt::Vertical ); | 254 | sortingGroup->setColumnLayout( 0, Qt::Vertical ); |
252 | QGridLayout *sortLayout = new QGridLayout( sortingGroup->layout(), 2, 2, | 255 | QGridLayout *sortLayout = new QGridLayout( sortingGroup->layout(), 2, 2, |
253 | KDialog::spacingHint() ); | 256 | KDialog::spacingHint() ); |
254 | sortLayout->setAlignment( Qt::AlignTop ); | 257 | sortLayout->setAlignment( Qt::AlignTop ); |
255 | 258 | ||
256 | label = new QLabel( i18n( "Criterion:" ), sortingGroup ); | 259 | label = new QLabel( i18n( "Criterion:" ), sortingGroup ); |
257 | sortLayout->addWidget( label, 0, 0 ); | 260 | sortLayout->addWidget( label, 0, 0 ); |
258 | 261 | ||
259 | #ifndef KAB_EMBEDDED | 262 | #ifndef KAB_EMBEDDED |
260 | mFieldCombo = new KComboBox( false, sortingGroup ); | 263 | mFieldCombo = new KComboBox( false, sortingGroup ); |
261 | #else //KAB_EMBEDDED | 264 | #else //KAB_EMBEDDED |
262 | //US Combobox is not editable anyway | 265 | //US Combobox is not editable anyway |
263 | mFieldCombo = new KComboBox( sortingGroup ); | 266 | mFieldCombo = new KComboBox( sortingGroup ); |
264 | #endif //KAB_EMBEDDED | 267 | #endif //KAB_EMBEDDED |
265 | sortLayout->addWidget( mFieldCombo, 0, 1 ); | 268 | sortLayout->addWidget( mFieldCombo, 0, 1 ); |
266 | 269 | ||
267 | label = new QLabel( i18n( "Order:" ), sortingGroup ); | 270 | label = new QLabel( i18n( "Order:" ), sortingGroup ); |
268 | sortLayout->addWidget( label, 1, 0 ); | 271 | sortLayout->addWidget( label, 1, 0 ); |
269 | 272 | ||
270 | #ifndef KAB_EMBEDDED | 273 | #ifndef KAB_EMBEDDED |
271 | mSortTypeCombo = new KComboBox( false, sortingGroup ); | 274 | mSortTypeCombo = new KComboBox( false, sortingGroup ); |
272 | #else //KAB_EMBEDDED | 275 | #else //KAB_EMBEDDED |
273 | //US Combobox is not editable anyway | 276 | //US Combobox is not editable anyway |
274 | mSortTypeCombo = new KComboBox( sortingGroup ); | 277 | mSortTypeCombo = new KComboBox( sortingGroup ); |
275 | #endif //KAB_EMBEDDED | 278 | #endif //KAB_EMBEDDED |
276 | sortLayout->addWidget( mSortTypeCombo, 1, 1 ); | 279 | sortLayout->addWidget( mSortTypeCombo, 1, 1 ); |
277 | 280 | ||
278 | topLayout->addWidget( sortingGroup ); | 281 | topLayout->addWidget( sortingGroup ); |
279 | 282 | ||
280 | if ( !mUseSorting ) | 283 | if ( !mUseSorting ) |
281 | sortingGroup->hide(); | 284 | sortingGroup->hide(); |
285 | #ifndef DESKTOP_VERSION | ||
286 | hideButtons(); | ||
287 | #endif | ||
282 | } | 288 | } |
283 | 289 | ||
284 | #ifndef KAB_EMBEDDED | 290 | #ifndef KAB_EMBEDDED |
285 | #include "xxportselectdialog.moc" | 291 | #include "xxportselectdialog.moc" |
286 | #endif //KAB_EMBEDDED | 292 | #endif //KAB_EMBEDDED |
287 | 293 | ||
288 | 294 | ||
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp index 47cd488..543897a 100644 --- a/korganizer/calendarview.cpp +++ b/korganizer/calendarview.cpp | |||
@@ -2421,76 +2421,82 @@ void CalendarView::moveIncidence(Incidence * inc ) | |||
2421 | Todo * to = (Todo *) mMoveIncidence; | 2421 | Todo * to = (Todo *) mMoveIncidence; |
2422 | if ( to->hasDueDate() ) | 2422 | if ( to->hasDueDate() ) |
2423 | da = to->dtDue().date(); | 2423 | da = to->dtDue().date(); |
2424 | else | 2424 | else |
2425 | da = QDate::currentDate(); | 2425 | da = QDate::currentDate(); |
2426 | } else { | 2426 | } else { |
2427 | da = mMoveIncidence->dtStart().date(); | 2427 | da = mMoveIncidence->dtStart().date(); |
2428 | } | 2428 | } |
2429 | mDatePicker->setDate( da ); | 2429 | mDatePicker->setDate( da ); |
2430 | } | 2430 | } |
2431 | void CalendarView::showDatePicker( ) | 2431 | void CalendarView::showDatePicker( ) |
2432 | { | 2432 | { |
2433 | //qDebug("CalendarView::showDatePicker( ) "); | 2433 | //qDebug("CalendarView::showDatePicker( ) "); |
2434 | if ( mDateFrame->isVisible() ) | 2434 | if ( mDateFrame->isVisible() ) |
2435 | mDateFrame->hide(); | 2435 | mDateFrame->hide(); |
2436 | else { | 2436 | else { |
2437 | int w =mDatePicker->sizeHint().width() ; | 2437 | int w =mDatePicker->sizeHint().width() ; |
2438 | int h = mDatePicker->sizeHint().height() ; | 2438 | int h = mDatePicker->sizeHint().height() ; |
2439 | int dw = QApplication::desktop()->width(); | 2439 | int dw = QApplication::desktop()->width(); |
2440 | int dh = QApplication::desktop()->height(); | 2440 | int dh = QApplication::desktop()->height(); |
2441 | mDateFrame->setGeometry( (dw-w)/2, (dh - h )/2 ,w,h ); | 2441 | mDateFrame->setGeometry( (dw-w)/2, (dh - h )/2 ,w,h ); |
2442 | mDateFrame->show(); | 2442 | mDateFrame->show(); |
2443 | } | 2443 | } |
2444 | mDatePickerMode = 1; | 2444 | mDatePickerMode = 1; |
2445 | mDatePicker->setDate( mNavigator->selectedDates().first() ); | 2445 | mDatePicker->setDate( mNavigator->selectedDates().first() ); |
2446 | } | 2446 | } |
2447 | 2447 | ||
2448 | void CalendarView::showEventEditor() | 2448 | void CalendarView::showEventEditor() |
2449 | { | 2449 | { |
2450 | #ifdef DESKTOP_VERSION | 2450 | #ifdef DESKTOP_VERSION |
2451 | mEventEditor->show(); | 2451 | mEventEditor->show(); |
2452 | #else | 2452 | #else |
2453 | if ( mEventEditor->width() != QApplication::desktop()->width() ) | 2453 | if ( mEventEditor->width() != QApplication::desktop()->width() ) { |
2454 | mEventEditor->hide(); | 2454 | qDebug("CalendarView: recreate mEventEditor "); |
2455 | delete mEventEditor; | ||
2456 | mEventEditor = mDialogManager->getEventEditor(); | ||
2457 | } | ||
2455 | mEventEditor->showMaximized(); | 2458 | mEventEditor->showMaximized(); |
2456 | #endif | 2459 | #endif |
2457 | } | 2460 | } |
2458 | void CalendarView::showTodoEditor() | 2461 | void CalendarView::showTodoEditor() |
2459 | { | 2462 | { |
2460 | #ifdef DESKTOP_VERSION | 2463 | #ifdef DESKTOP_VERSION |
2461 | mTodoEditor->show(); | 2464 | mTodoEditor->show(); |
2462 | #else | 2465 | #else |
2463 | if ( mTodoEditor->width() != QApplication::desktop()->width() ) | 2466 | if ( mTodoEditor->width() != QApplication::desktop()->width() ) { |
2464 | mTodoEditor->hide(); | 2467 | qDebug("CalendarView: recreate mTodoEditor "); |
2468 | delete mTodoEditor; | ||
2469 | mTodoEditor = mDialogManager->getTodoEditor(); | ||
2470 | } | ||
2465 | mTodoEditor->showMaximized(); | 2471 | mTodoEditor->showMaximized(); |
2466 | #endif | 2472 | #endif |
2467 | } | 2473 | } |
2468 | 2474 | ||
2469 | void CalendarView::cloneIncidence() | 2475 | void CalendarView::cloneIncidence() |
2470 | { | 2476 | { |
2471 | Incidence *incidence = currentSelection(); | 2477 | Incidence *incidence = currentSelection(); |
2472 | if ( !incidence ) incidence = mTodoList->selectedIncidences().first(); | 2478 | if ( !incidence ) incidence = mTodoList->selectedIncidences().first(); |
2473 | if ( incidence ) { | 2479 | if ( incidence ) { |
2474 | cloneIncidence(incidence); | 2480 | cloneIncidence(incidence); |
2475 | } | 2481 | } |
2476 | } | 2482 | } |
2477 | void CalendarView::moveIncidence() | 2483 | void CalendarView::moveIncidence() |
2478 | { | 2484 | { |
2479 | Incidence *incidence = currentSelection(); | 2485 | Incidence *incidence = currentSelection(); |
2480 | if ( !incidence ) incidence = mTodoList->selectedIncidences().first(); | 2486 | if ( !incidence ) incidence = mTodoList->selectedIncidences().first(); |
2481 | if ( incidence ) { | 2487 | if ( incidence ) { |
2482 | moveIncidence(incidence); | 2488 | moveIncidence(incidence); |
2483 | } | 2489 | } |
2484 | } | 2490 | } |
2485 | void CalendarView::beamIncidence() | 2491 | void CalendarView::beamIncidence() |
2486 | { | 2492 | { |
2487 | Incidence *incidence = currentSelection(); | 2493 | Incidence *incidence = currentSelection(); |
2488 | if ( !incidence ) incidence = mTodoList->selectedIncidences().first(); | 2494 | if ( !incidence ) incidence = mTodoList->selectedIncidences().first(); |
2489 | if ( incidence ) { | 2495 | if ( incidence ) { |
2490 | beamIncidence(incidence); | 2496 | beamIncidence(incidence); |
2491 | } | 2497 | } |
2492 | } | 2498 | } |
2493 | void CalendarView::toggleCancelIncidence() | 2499 | void CalendarView::toggleCancelIncidence() |
2494 | { | 2500 | { |
2495 | Incidence *incidence = currentSelection(); | 2501 | Incidence *incidence = currentSelection(); |
2496 | if ( !incidence ) incidence = mTodoList->selectedIncidences().first(); | 2502 | if ( !incidence ) incidence = mTodoList->selectedIncidences().first(); |
diff --git a/korganizer/koeditordetails.cpp b/korganizer/koeditordetails.cpp index 66f6977..b73d22f 100644 --- a/korganizer/koeditordetails.cpp +++ b/korganizer/koeditordetails.cpp | |||
@@ -113,76 +113,77 @@ KOEditorDetails::KOEditorDetails (int spacing,QWidget* parent,const char* name) | |||
113 | QLabel *attendeeRoleLabel = new QLabel(this); | 113 | QLabel *attendeeRoleLabel = new QLabel(this); |
114 | attendeeRoleLabel->setText(i18n("Role:")); | 114 | attendeeRoleLabel->setText(i18n("Role:")); |
115 | mRoleCombo = new QComboBox(false,this); | 115 | mRoleCombo = new QComboBox(false,this); |
116 | mRoleCombo->insertStringList(Attendee::roleList()); | 116 | mRoleCombo->insertStringList(Attendee::roleList()); |
117 | connect(mRoleCombo,SIGNAL(activated(int)),SLOT(updateAttendeeItem())); | 117 | connect(mRoleCombo,SIGNAL(activated(int)),SLOT(updateAttendeeItem())); |
118 | 118 | ||
119 | QLabel *statusLabel = new QLabel(this); | 119 | QLabel *statusLabel = new QLabel(this); |
120 | statusLabel->setText( i18n("Status:") ); | 120 | statusLabel->setText( i18n("Status:") ); |
121 | 121 | ||
122 | mStatusCombo = new QComboBox(false,this); | 122 | mStatusCombo = new QComboBox(false,this); |
123 | mStatusCombo->insertStringList(Attendee::statusList()); | 123 | mStatusCombo->insertStringList(Attendee::statusList()); |
124 | connect(mStatusCombo,SIGNAL(activated(int)),SLOT(updateAttendeeItem())); | 124 | connect(mStatusCombo,SIGNAL(activated(int)),SLOT(updateAttendeeItem())); |
125 | 125 | ||
126 | mRsvpButton = new QCheckBox(this); | 126 | mRsvpButton = new QCheckBox(this); |
127 | mRsvpButton->setText(i18n("Request response")); | 127 | mRsvpButton->setText(i18n("Request response")); |
128 | connect(mRsvpButton,SIGNAL(clicked()),SLOT(updateAttendeeItem())); | 128 | connect(mRsvpButton,SIGNAL(clicked()),SLOT(updateAttendeeItem())); |
129 | QWidget *buttonBox = new QWidget(this); | 129 | QWidget *buttonBox = new QWidget(this); |
130 | QVBoxLayout *buttonLayout = new QVBoxLayout(buttonBox); | 130 | QVBoxLayout *buttonLayout = new QVBoxLayout(buttonBox); |
131 | 131 | ||
132 | QPushButton *newButton = new QPushButton(i18n("&New"),buttonBox); | 132 | QPushButton *newButton = new QPushButton(i18n("&New"),buttonBox); |
133 | buttonLayout->addWidget(newButton); | 133 | buttonLayout->addWidget(newButton); |
134 | connect(newButton,SIGNAL(clicked()),SLOT(addNewAttendee())); | 134 | connect(newButton,SIGNAL(clicked()),SLOT(addNewAttendee())); |
135 | 135 | ||
136 | mRemoveButton = new QPushButton(i18n("&Remove"),buttonBox); | 136 | mRemoveButton = new QPushButton(i18n("&Remove"),buttonBox); |
137 | buttonLayout->addWidget(mRemoveButton); | 137 | buttonLayout->addWidget(mRemoveButton); |
138 | connect(mRemoveButton, SIGNAL(clicked()),SLOT(removeAttendee())); | 138 | connect(mRemoveButton, SIGNAL(clicked()),SLOT(removeAttendee())); |
139 | 139 | ||
140 | mAddressBookButton = new QPushButton(i18n("Address &Book..."),this); | 140 | mAddressBookButton = new QPushButton(i18n("Address &Book..."),this); |
141 | // buttonLayout->addWidget(mAddressBookButton); | 141 | // buttonLayout->addWidget(mAddressBookButton); |
142 | connect(mAddressBookButton,SIGNAL(clicked()),SLOT(openAddressBook())); | 142 | connect(mAddressBookButton,SIGNAL(clicked()),SLOT(openAddressBook())); |
143 | //mRoleCombo->setFixedSize( mRoleCombo->sizeHint () ); | 143 | //mRoleCombo->setFixedSize( mRoleCombo->sizeHint () ); |
144 | 144 | ||
145 | if (qApp->desktop()->width() < 300 ) { | 145 | if (qApp->desktop()->width() < 640 ) { |
146 | if ( qApp->desktop()->width() < 300 ) | ||
146 | mListView->setFixedHeight(80); | 147 | mListView->setFixedHeight(80); |
147 | topLayout->addMultiCellWidget(mOrganizerLabel,0,0,0,3); | 148 | topLayout->addMultiCellWidget(mOrganizerLabel,0,0,0,3); |
148 | topLayout->addMultiCellWidget(mListView,1,1,0,3); | 149 | topLayout->addMultiCellWidget(mListView,1,1,0,3); |
149 | topLayout->addWidget(attendeeLabel,3,0); | 150 | topLayout->addWidget(attendeeLabel,3,0); |
150 | topLayout->addMultiCellWidget(mNameEdit,3,3,1,2); | 151 | topLayout->addMultiCellWidget(mNameEdit,3,3,1,2); |
151 | topLayout->addWidget(emailLabel,4,0); | 152 | topLayout->addWidget(emailLabel,4,0); |
152 | topLayout->addMultiCellWidget(mEmailEdit,4,4,1,2); | 153 | topLayout->addMultiCellWidget(mEmailEdit,4,4,1,2); |
153 | topLayout->addWidget(attendeeRoleLabel,5,0); | 154 | topLayout->addWidget(attendeeRoleLabel,5,0); |
154 | topLayout->addMultiCellWidget(mRoleCombo,5,5,1,2); | 155 | topLayout->addMultiCellWidget(mRoleCombo,5,5,1,3); |
155 | topLayout->addWidget(statusLabel,6,0); | 156 | topLayout->addWidget(statusLabel,6,0); |
156 | topLayout->addMultiCellWidget(mStatusCombo,6,6,1,2); | 157 | topLayout->addMultiCellWidget(mStatusCombo,6,6,1,3); |
157 | topLayout->addMultiCellWidget(mAddressBookButton,2,2,2,3); | 158 | topLayout->addMultiCellWidget(mAddressBookButton,2,2,2,3); |
158 | topLayout->addMultiCellWidget(mRsvpButton,2,2,0,1); | 159 | topLayout->addMultiCellWidget(mRsvpButton,2,2,0,1); |
159 | topLayout->addMultiCellWidget(buttonBox,3,4,3,3); | 160 | topLayout->addMultiCellWidget(buttonBox,3,4,3,3); |
160 | topLayout->setRowStretch(1,2); | 161 | topLayout->setRowStretch(1,2); |
161 | topLayout->setColStretch(0,0); | 162 | topLayout->setColStretch(0,0); |
162 | topLayout->setColStretch(1,2); | 163 | topLayout->setColStretch(1,2); |
163 | topLayout->setColStretch(2,1); | 164 | topLayout->setColStretch(2,1); |
164 | topLayout->setColStretch(3,1); | 165 | topLayout->setColStretch(3,1); |
165 | 166 | ||
166 | } else { | 167 | } else { |
167 | topLayout->addMultiCellWidget(mOrganizerLabel,0,0,0,5); | 168 | topLayout->addMultiCellWidget(mOrganizerLabel,0,0,0,5); |
168 | topLayout->addMultiCellWidget(mListView,1,1,0,5); | 169 | topLayout->addMultiCellWidget(mListView,1,1,0,5); |
169 | topLayout->addWidget(attendeeLabel,3,0); | 170 | topLayout->addWidget(attendeeLabel,3,0); |
170 | topLayout->addMultiCellWidget(mNameEdit,3,3,1,4); | 171 | topLayout->addMultiCellWidget(mNameEdit,3,3,1,4); |
171 | topLayout->addWidget(emailLabel,4,0); | 172 | topLayout->addWidget(emailLabel,4,0); |
172 | topLayout->addMultiCellWidget(mEmailEdit,4,4,1,4); | 173 | topLayout->addMultiCellWidget(mEmailEdit,4,4,1,4); |
173 | topLayout->addWidget(attendeeRoleLabel,5,0); | 174 | topLayout->addWidget(attendeeRoleLabel,5,0); |
174 | topLayout->addMultiCellWidget(mRoleCombo,5,5,1,2); | 175 | topLayout->addMultiCellWidget(mRoleCombo,5,5,1,2); |
175 | topLayout->addWidget(statusLabel,5,3); | 176 | topLayout->addWidget(statusLabel,5,3); |
176 | topLayout->addMultiCellWidget(mStatusCombo,5,5,4,5); | 177 | topLayout->addMultiCellWidget(mStatusCombo,5,5,4,5); |
177 | topLayout->addMultiCellWidget(mAddressBookButton,2,2,4,5); | 178 | topLayout->addMultiCellWidget(mAddressBookButton,2,2,4,5); |
178 | topLayout->addMultiCellWidget(mRsvpButton,2,2,0,1); | 179 | topLayout->addMultiCellWidget(mRsvpButton,2,2,0,1); |
179 | topLayout->addMultiCellWidget(buttonBox,3,4,5,5); | 180 | topLayout->addMultiCellWidget(buttonBox,3,4,5,5); |
180 | topLayout->setRowStretch(1,5); | 181 | topLayout->setRowStretch(1,5); |
181 | topLayout->setColStretch(0,0); | 182 | topLayout->setColStretch(0,0); |
182 | } | 183 | } |
183 | // #if 0 | 184 | // #if 0 |
184 | // topLayout->setColStretch(2,1); | 185 | // topLayout->setColStretch(2,1); |
185 | // topLayout->addWidget(statusLabel,3,3); | 186 | // topLayout->addWidget(statusLabel,3,3); |
186 | // topLayout->addWidget(mStatusCombo,3,4); | 187 | // topLayout->addWidget(mStatusCombo,3,4); |
187 | // #else | 188 | // #else |
188 | // topLayout->addWidget(statusLabel,4,3); | 189 | // topLayout->addWidget(statusLabel,4,3); |
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp index 65566b5..46ae6a0 100644 --- a/korganizer/mainwindow.cpp +++ b/korganizer/mainwindow.cpp | |||
@@ -84,65 +84,68 @@ class KOex2phonePrefs : public QDialog | |||
84 | lay->addWidget(lab = new QLabel( i18n("Please read Help-Sync Howto\nto know what settings to use."), this ) ); | 84 | lay->addWidget(lab = new QLabel( i18n("Please read Help-Sync Howto\nto know what settings to use."), this ) ); |
85 | lab->setAlignment (AlignHCenter ); | 85 | lab->setAlignment (AlignHCenter ); |
86 | QHBox* temphb; | 86 | QHBox* temphb; |
87 | temphb = new QHBox( this ); | 87 | temphb = new QHBox( this ); |
88 | new QLabel( i18n("I/O device: "), temphb ); | 88 | new QLabel( i18n("I/O device: "), temphb ); |
89 | mPhoneDevice = new QLineEdit( temphb); | 89 | mPhoneDevice = new QLineEdit( temphb); |
90 | lay->addWidget( temphb ); | 90 | lay->addWidget( temphb ); |
91 | temphb = new QHBox( this ); | 91 | temphb = new QHBox( this ); |
92 | new QLabel( i18n("Connection: "), temphb ); | 92 | new QLabel( i18n("Connection: "), temphb ); |
93 | mPhoneConnection = new QLineEdit( temphb); | 93 | mPhoneConnection = new QLineEdit( temphb); |
94 | lay->addWidget( temphb ); | 94 | lay->addWidget( temphb ); |
95 | temphb = new QHBox( this ); | 95 | temphb = new QHBox( this ); |
96 | new QLabel( i18n("Model(opt.): "), temphb ); | 96 | new QLabel( i18n("Model(opt.): "), temphb ); |
97 | mPhoneModel = new QLineEdit( temphb); | 97 | mPhoneModel = new QLineEdit( temphb); |
98 | lay->addWidget( temphb ); | 98 | lay->addWidget( temphb ); |
99 | mWriteBackFuture= new QCheckBox( i18n("Write back events in future only"), this ); | 99 | mWriteBackFuture= new QCheckBox( i18n("Write back events in future only"), this ); |
100 | mWriteBackFuture->setChecked( true ); | 100 | mWriteBackFuture->setChecked( true ); |
101 | lay->addWidget( mWriteBackFuture ); | 101 | lay->addWidget( mWriteBackFuture ); |
102 | temphb = new QHBox( this ); | 102 | temphb = new QHBox( this ); |
103 | new QLabel( i18n("Max. weeks in future: ") , temphb ); | 103 | new QLabel( i18n("Max. weeks in future: ") , temphb ); |
104 | mWriteBackFutureWeeks= new QSpinBox(1,104, 1, temphb); | 104 | mWriteBackFutureWeeks= new QSpinBox(1,104, 1, temphb); |
105 | mWriteBackFutureWeeks->setValue( 8 ); | 105 | mWriteBackFutureWeeks->setValue( 8 ); |
106 | lay->addWidget( temphb ); | 106 | lay->addWidget( temphb ); |
107 | lay->addWidget(lab = new QLabel( i18n("NOTE: This will remove all old\ntodo/calendar data on phone!"), this ) ); | 107 | lay->addWidget(lab = new QLabel( i18n("NOTE: This will remove all old\ntodo/calendar data on phone!"), this ) ); |
108 | lab->setAlignment (AlignHCenter ); | 108 | lab->setAlignment (AlignHCenter ); |
109 | QPushButton * ok = new QPushButton( i18n("Export to mobile phone!"), this ); | 109 | QPushButton * ok = new QPushButton( i18n("Export to mobile phone!"), this ); |
110 | lay->addWidget( ok ); | 110 | lay->addWidget( ok ); |
111 | QPushButton * cancel = new QPushButton( i18n("Cancel"), this ); | 111 | QPushButton * cancel = new QPushButton( i18n("Cancel"), this ); |
112 | lay->addWidget( cancel ); | 112 | lay->addWidget( cancel ); |
113 | connect ( ok,SIGNAL(clicked() ),this , SLOT ( accept() ) ); | 113 | connect ( ok,SIGNAL(clicked() ),this , SLOT ( accept() ) ); |
114 | connect (cancel, SIGNAL(clicked() ), this, SLOT ( reject()) ); | 114 | connect (cancel, SIGNAL(clicked() ), this, SLOT ( reject()) ); |
115 | resize( 220, 240 ); | 115 | resize( 220, 240 ); |
116 | 116 | qApp->processEvents(); | |
117 | int dw = QApplication::desktop()->width(); | ||
118 | int dh = QApplication::desktop()->height(); | ||
119 | move( (dw-width())/2, (dh - height() )/2 ); | ||
117 | } | 120 | } |
118 | 121 | ||
119 | public: | 122 | public: |
120 | QLineEdit* mPhoneConnection, *mPhoneDevice, *mPhoneModel; | 123 | QLineEdit* mPhoneConnection, *mPhoneDevice, *mPhoneModel; |
121 | QCheckBox* mWriteBackFuture; | 124 | QCheckBox* mWriteBackFuture; |
122 | QSpinBox* mWriteBackFutureWeeks; | 125 | QSpinBox* mWriteBackFutureWeeks; |
123 | }; | 126 | }; |
124 | 127 | ||
125 | int globalFlagBlockStartup; | 128 | int globalFlagBlockStartup; |
126 | MainWindow::MainWindow( QWidget *parent, const char *name, QString msg) : | 129 | MainWindow::MainWindow( QWidget *parent, const char *name, QString msg) : |
127 | QMainWindow( parent, name ) | 130 | QMainWindow( parent, name ) |
128 | { | 131 | { |
129 | 132 | ||
130 | #ifdef DESKTOP_VERSION | 133 | #ifdef DESKTOP_VERSION |
131 | setFont( QFont("Arial"), 14 ); | 134 | setFont( QFont("Arial"), 14 ); |
132 | #endif | 135 | #endif |
133 | mClosed = false; | 136 | mClosed = false; |
134 | //QString confFile = KStandardDirs::appDir() + "config/korganizerrc"; | 137 | //QString confFile = KStandardDirs::appDir() + "config/korganizerrc"; |
135 | QString confFile = locateLocal("config","korganizerrc"); | 138 | QString confFile = locateLocal("config","korganizerrc"); |
136 | QFileInfo finf ( confFile ); | 139 | QFileInfo finf ( confFile ); |
137 | bool showWarning = !finf.exists(); | 140 | bool showWarning = !finf.exists(); |
138 | setIcon(SmallIcon( "ko24" ) ); | 141 | setIcon(SmallIcon( "ko24" ) ); |
139 | mBlockAtStartup = true; | 142 | mBlockAtStartup = true; |
140 | mFlagKeyPressed = false; | 143 | mFlagKeyPressed = false; |
141 | setCaption("KOrganizer/Pi"); | 144 | setCaption("KOrganizer/Pi"); |
142 | KOPrefs *p = KOPrefs::instance(); | 145 | KOPrefs *p = KOPrefs::instance(); |
143 | KPimGlobalPrefs::instance()->setGlobalConfig(); | 146 | KPimGlobalPrefs::instance()->setGlobalConfig(); |
144 | if ( p->mHourSize > 18 ) | 147 | if ( p->mHourSize > 18 ) |
145 | p->mHourSize = 18; | 148 | p->mHourSize = 18; |
146 | QMainWindow::ToolBarDock tbd; | 149 | QMainWindow::ToolBarDock tbd; |
147 | if ( p->mToolBarHor ) { | 150 | if ( p->mToolBarHor ) { |
148 | if ( p->mToolBarUp ) | 151 | if ( p->mToolBarUp ) |