author | zautrix <zautrix> | 2005-04-17 11:24:27 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-04-17 11:24:27 (UTC) |
commit | f64384edcc1e3b3f7511480866b0900aa1ebdda6 (patch) (unidiff) | |
tree | 3ca1b2511624b8ae2ee9e9bc35d7e1b65e3b860c | |
parent | ff7743ec82aa6d70325e613d0a1054c7de83a76c (diff) | |
download | kdepimpi-f64384edcc1e3b3f7511480866b0900aa1ebdda6.zip kdepimpi-f64384edcc1e3b3f7511480866b0900aa1ebdda6.tar.gz kdepimpi-f64384edcc1e3b3f7511480866b0900aa1ebdda6.tar.bz2 |
fixx
-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 | |||
@@ -248,88 +248,91 @@ void XXPortSelectDialog::initGUI() | |||
248 | QLabel *label = new QLabel( i18n( "Which contacts do you want to select?" ), page ); | 248 | QLabel *label = new QLabel( i18n( "Which contacts do you want to select?" ), page ); |
249 | topLayout->addWidget( label ); | 249 | topLayout->addWidget( label ); |
250 | 250 | ||
251 | mButtonGroup = new QButtonGroup( i18n( "Contact Selection" ), page ); | 251 | mButtonGroup = new QButtonGroup( i18n( "Contact Selection" ), page ); |
252 | mButtonGroup->setColumnLayout( 0, Qt::Vertical ); | 252 | mButtonGroup->setColumnLayout( 0, Qt::Vertical ); |
253 | mButtonGroup->layout()->setSpacing( KDialog::spacingHint() ); | 253 | mButtonGroup->layout()->setSpacing( KDialog::spacingHint() ); |
254 | mButtonGroup->layout()->setMargin( KDialog::marginHint() ); | 254 | mButtonGroup->layout()->setMargin( KDialog::marginHint() ); |
255 | 255 | ||
256 | QGridLayout *groupLayout = new QGridLayout( mButtonGroup->layout() ); | 256 | QGridLayout *groupLayout = new QGridLayout( mButtonGroup->layout() ); |
257 | groupLayout->setAlignment( Qt::AlignTop ); | 257 | groupLayout->setAlignment( Qt::AlignTop ); |
258 | 258 | ||
259 | mUseWholeBook = new QRadioButton( i18n( "&All" ), mButtonGroup ); | 259 | mUseWholeBook = new QRadioButton( i18n( "&All" ), mButtonGroup ); |
260 | mUseWholeBook->setChecked( true ); | 260 | mUseWholeBook->setChecked( true ); |
261 | QWhatsThis::add( mUseWholeBook, i18n( "Select the entire address book" ) ); | 261 | QWhatsThis::add( mUseWholeBook, i18n( "Select the entire address book" ) ); |
262 | groupLayout->addWidget( mUseWholeBook, 0, 0 ); | 262 | groupLayout->addWidget( mUseWholeBook, 0, 0 ); |
263 | 263 | ||
264 | mUseSelection = new QRadioButton( i18n( "&Selected" ), mButtonGroup ); | 264 | mUseSelection = new QRadioButton( i18n( "&Selected" ), mButtonGroup ); |
265 | QWhatsThis::add( mUseSelection, i18n( "Only contacts selected in KAddressBook.\n" | 265 | QWhatsThis::add( mUseSelection, i18n( "Only contacts selected in KAddressBook.\n" |
266 | "This option is disabled if no contacts are selected." ) ); | 266 | "This option is disabled if no contacts are selected." ) ); |
267 | groupLayout->addWidget( mUseSelection, 1, 0 ); | 267 | groupLayout->addWidget( mUseSelection, 1, 0 ); |
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 ); |
293 | 293 | ||
294 | QButtonGroup *sortingGroup = new QButtonGroup( i18n( "Sorting" ), page ); | 294 | QButtonGroup *sortingGroup = new QButtonGroup( i18n( "Sorting" ), page ); |
295 | sortingGroup->setColumnLayout( 0, Qt::Vertical ); | 295 | sortingGroup->setColumnLayout( 0, Qt::Vertical ); |
296 | QGridLayout *sortLayout = new QGridLayout( sortingGroup->layout(), 2, 2, | 296 | QGridLayout *sortLayout = new QGridLayout( sortingGroup->layout(), 2, 2, |
297 | KDialog::spacingHint() ); | 297 | KDialog::spacingHint() ); |
298 | sortLayout->setAlignment( Qt::AlignTop ); | 298 | sortLayout->setAlignment( Qt::AlignTop ); |
299 | 299 | ||
300 | label = new QLabel( i18n( "Criterion:" ), sortingGroup ); | 300 | label = new QLabel( i18n( "Criterion:" ), sortingGroup ); |
301 | sortLayout->addWidget( label, 0, 0 ); | 301 | sortLayout->addWidget( label, 0, 0 ); |
302 | 302 | ||
303 | #ifndef KAB_EMBEDDED | 303 | #ifndef KAB_EMBEDDED |
304 | mFieldCombo = new KComboBox( false, sortingGroup ); | 304 | mFieldCombo = new KComboBox( false, sortingGroup ); |
305 | #else //KAB_EMBEDDED | 305 | #else //KAB_EMBEDDED |
306 | //US Combobox is not editable anyway | 306 | //US Combobox is not editable anyway |
307 | mFieldCombo = new KComboBox( sortingGroup ); | 307 | mFieldCombo = new KComboBox( sortingGroup ); |
308 | #endif //KAB_EMBEDDED | 308 | #endif //KAB_EMBEDDED |
309 | sortLayout->addWidget( mFieldCombo, 0, 1 ); | 309 | sortLayout->addWidget( mFieldCombo, 0, 1 ); |
310 | 310 | ||
311 | label = new QLabel( i18n( "Order:" ), sortingGroup ); | 311 | label = new QLabel( i18n( "Order:" ), sortingGroup ); |
312 | sortLayout->addWidget( label, 1, 0 ); | 312 | sortLayout->addWidget( label, 1, 0 ); |
313 | 313 | ||
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 | ||