Diffstat (limited to 'kaddressbook/xxportselectdialog.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | kaddressbook/xxportselectdialog.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/kaddressbook/xxportselectdialog.cpp b/kaddressbook/xxportselectdialog.cpp index 0127fc0..e134f97 100644 --- a/kaddressbook/xxportselectdialog.cpp +++ b/kaddressbook/xxportselectdialog.cpp | |||
@@ -268,25 +268,25 @@ void XXPortSelectDialog::initGUI() | |||
268 | 268 | ||
269 | mUseFilters = new QRadioButton( i18n( "By matching &filter" ), mButtonGroup ); | 269 | mUseFilters = new QRadioButton( i18n( "By matching &filter" ), mButtonGroup ); |
270 | QWhatsThis::add( mUseFilters, i18n( "Only contacts matching the selected filter.\n" | 270 | QWhatsThis::add( mUseFilters, i18n( "Only contacts matching the selected filter.\n" |
271 | "This option is disabled if you haven't defined any filters" ) ); | 271 | "This option is disabled if you haven't defined any filters" ) ); |
272 | groupLayout->addWidget( mUseFilters, 2, 0 ); | 272 | groupLayout->addWidget( mUseFilters, 2, 0 ); |
273 | 273 | ||
274 | mUseCategories = new QRadioButton( i18n( "By Cate&gories" ), mButtonGroup ); | 274 | mUseCategories = new QRadioButton( i18n( "By Cate&gories" ), mButtonGroup ); |
275 | QWhatsThis::add( mUseCategories, i18n( "Only contacts who are members of a category that is checked on the list to the left.\n" | 275 | QWhatsThis::add( mUseCategories, i18n( "Only contacts who are members of a category that is checked on the list to the left.\n" |
276 | "This option is disabled if you have no categories." ) ); | 276 | "This option is disabled if you have no categories." ) ); |
277 | groupLayout->addWidget( mUseCategories, 3, 0 ); | 277 | groupLayout->addWidget( mUseCategories, 3, 0 ); |
278 | 278 | ||
279 | mFiltersCombo = new QComboBox( false, mButtonGroup ); | 279 | mFiltersCombo = new QComboBox( false, mButtonGroup ); |
280 | mFiltersCombo->setSizePolicy(QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding ) ); | 280 | mFiltersCombo->setSizePolicy(QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) ); |
281 | QWhatsThis::add( mFiltersCombo, i18n( "Select a filter to decide which contacts to select." ) ); | 281 | QWhatsThis::add( mFiltersCombo, i18n( "Select a filter to decide which contacts to select." ) ); |
282 | groupLayout->addWidget( mFiltersCombo, 2, 1 ); | 282 | groupLayout->addWidget( mFiltersCombo, 2, 1 ); |
283 | 283 | ||
284 | mCategoriesView = new QListView( mButtonGroup ); | 284 | mCategoriesView = new QListView( mButtonGroup ); |
285 | mCategoriesView->addColumn( "" ); | 285 | mCategoriesView->addColumn( "" ); |
286 | mCategoriesView->header()->hide(); | 286 | mCategoriesView->header()->hide(); |
287 | QWhatsThis::add( mCategoriesView, i18n( "Check the categories whose members you want to select." ) ); | 287 | QWhatsThis::add( mCategoriesView, i18n( "Check the categories whose members you want to select." ) ); |
288 | groupLayout->addWidget( mCategoriesView, 3, 1 ); | 288 | groupLayout->addWidget( mCategoriesView, 3, 1 ); |
289 | mCategoriesView->setSizePolicy(QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding ) ); | 289 | mCategoriesView->setSizePolicy(QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding ) ); |
290 | //if (QApplication::desktop()->height() == 480 ) | 290 | //if (QApplication::desktop()->height() == 480 ) |
291 | // mCategoriesView->setMaximumHeight( 240 ); | 291 | // mCategoriesView->setMaximumHeight( 240 ); |
292 | topLayout->addWidget( mButtonGroup ); | 292 | topLayout->addWidget( mButtonGroup ); |
@@ -314,22 +314,25 @@ void XXPortSelectDialog::initGUI() | |||
314 | #ifndef KAB_EMBEDDED | 314 | #ifndef KAB_EMBEDDED |
315 | mSortTypeCombo = new KComboBox( false, sortingGroup ); | 315 | mSortTypeCombo = new KComboBox( false, sortingGroup ); |
316 | #else //KAB_EMBEDDED | 316 | #else //KAB_EMBEDDED |
317 | //US Combobox is not editable anyway | 317 | //US Combobox is not editable anyway |
318 | mSortTypeCombo = new KComboBox( sortingGroup ); | 318 | mSortTypeCombo = new KComboBox( sortingGroup ); |
319 | #endif //KAB_EMBEDDED | 319 | #endif //KAB_EMBEDDED |
320 | sortLayout->addWidget( mSortTypeCombo, 1, 1 ); | 320 | sortLayout->addWidget( mSortTypeCombo, 1, 1 ); |
321 | 321 | ||
322 | topLayout->addWidget( sortingGroup ); | 322 | topLayout->addWidget( sortingGroup ); |
323 | 323 | ||
324 | if ( !mUseSorting ) | 324 | if ( !mUseSorting ) |
325 | sortingGroup->hide(); | 325 | sortingGroup->hide(); |
326 | if (QApplication::desktop()->width() <= 640 ) { | ||
327 | showMaximized(); | ||
326 | #ifndef DESKTOP_VERSION | 328 | #ifndef DESKTOP_VERSION |
327 | hideButtons(); | 329 | hideButtons(); |
328 | #endif | 330 | #endif |
331 | } | ||
329 | } | 332 | } |
330 | 333 | ||
331 | #ifndef KAB_EMBEDDED | 334 | #ifndef KAB_EMBEDDED |
332 | #include "xxportselectdialog.moc" | 335 | #include "xxportselectdialog.moc" |
333 | #endif //KAB_EMBEDDED | 336 | #endif //KAB_EMBEDDED |
334 | 337 | ||
335 | 338 | ||