Diffstat (limited to 'libkdepim/categoryeditdialog.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libkdepim/categoryeditdialog.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libkdepim/categoryeditdialog.cpp b/libkdepim/categoryeditdialog.cpp index a19900f..e2325d2 100644 --- a/libkdepim/categoryeditdialog.cpp +++ b/libkdepim/categoryeditdialog.cpp | |||
@@ -52,12 +52,16 @@ CategoryEditDialog::CategoryEditDialog( KPimPrefs *prefs, QWidget* parent, | |||
52 | 52 | ||
53 | connect(mCategories,SIGNAL(selectionChanged(QListViewItem *)), | 53 | connect(mCategories,SIGNAL(selectionChanged(QListViewItem *)), |
54 | SLOT(editItem(QListViewItem *))); | 54 | SLOT(editItem(QListViewItem *))); |
55 | connect(mEdit,SIGNAL(textChanged ( const QString & )),this,SLOT(slotTextChanged(const QString &))); | 55 | connect(mEdit,SIGNAL(textChanged ( const QString & )),this,SLOT(slotTextChanged(const QString &))); |
56 | mButtonRemove->setEnabled(categoriesExist); | 56 | mButtonRemove->setEnabled(categoriesExist); |
57 | mButtonModify->setEnabled(categoriesExist); | 57 | mButtonModify->setEnabled(categoriesExist); |
58 | #ifndef DESKTOP_VERSION | ||
59 | mButtonOk->hide(); | ||
60 | mButtonCancel->hide(); | ||
61 | #endif | ||
58 | mButtonAdd->setEnabled(!mEdit->text().isEmpty()); | 62 | mButtonAdd->setEnabled(!mEdit->text().isEmpty()); |
59 | if ( QApplication::desktop()->width() > 460 ) | 63 | if ( QApplication::desktop()->width() > 460 ) |
60 | resize( 300, 360 ); | 64 | resize( 300, 360 ); |
61 | else | 65 | else |
62 | showMaximized(); | 66 | showMaximized(); |
63 | } | 67 | } |