summaryrefslogtreecommitdiffabout
path: root/kaddressbook/xxportselectdialog.cpp
Unidiff
Diffstat (limited to 'kaddressbook/xxportselectdialog.cpp') (more/less context) (show whitespace changes)
-rw-r--r--kaddressbook/xxportselectdialog.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/kaddressbook/xxportselectdialog.cpp b/kaddressbook/xxportselectdialog.cpp
index e7bc8c0..0127fc0 100644
--- a/kaddressbook/xxportselectdialog.cpp
+++ b/kaddressbook/xxportselectdialog.cpp
@@ -233,26 +233,26 @@ void XXPortSelectDialog::slotHelp()
233#ifndef KAB_EMBEDDED 233#ifndef KAB_EMBEDDED
234 kapp->invokeHelp( "import-and-export" ); 234 kapp->invokeHelp( "import-and-export" );
235#else //KAB_EMBEDDED 235#else //KAB_EMBEDDED
236 qDebug("XXPortSelectDialog::slotHelp is not implemented yet"); 236 qDebug("XXPortSelectDialog::slotHelp is not implemented yet");
237#endif //KAB_EMBEDDED 237#endif //KAB_EMBEDDED
238 238
239} 239}
240 240
241void XXPortSelectDialog::initGUI() 241void XXPortSelectDialog::initGUI()
242{ 242{
243 QFrame *page = plainPage(); 243 QFrame *page = plainPage();
244 244
245 QVBoxLayout *topLayout = new QVBoxLayout( page, KDialog::marginHint(), 245 QVBoxLayout *topLayout = new QVBoxLayout( page, KDialog::marginHintSmall(),
246 KDialog::spacingHint() ); 246 KDialog::spacingHintSmall() );
247 247
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
@@ -268,35 +268,36 @@ 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 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." ) );
281 groupLayout->addWidget( mFiltersCombo, 2, 1 ); 282 groupLayout->addWidget( mFiltersCombo, 2, 1 );
282 283
283 mCategoriesView = new QListView( mButtonGroup ); 284 mCategoriesView = new QListView( mButtonGroup );
284 mCategoriesView->addColumn( "" ); 285 mCategoriesView->addColumn( "" );
285 mCategoriesView->header()->hide(); 286 mCategoriesView->header()->hide();
286 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." ) );
287 groupLayout->addWidget( mCategoriesView, 3, 1 ); 288 groupLayout->addWidget( mCategoriesView, 3, 1 );
288 289 mCategoriesView->setSizePolicy(QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding ) );
289 if (QApplication::desktop()->height() == 480 ) 290 //if (QApplication::desktop()->height() == 480 )
290 mCategoriesView->setMaximumHeight( 240 ); 291 // mCategoriesView->setMaximumHeight( 240 );
291 topLayout->addWidget( mButtonGroup ); 292 topLayout->addWidget( mButtonGroup );
292 293
293 QButtonGroup *sortingGroup = new QButtonGroup( i18n( "Sorting" ), page ); 294 QButtonGroup *sortingGroup = new QButtonGroup( i18n( "Sorting" ), page );
294 sortingGroup->setColumnLayout( 0, Qt::Vertical ); 295 sortingGroup->setColumnLayout( 0, Qt::Vertical );
295 QGridLayout *sortLayout = new QGridLayout( sortingGroup->layout(), 2, 2, 296 QGridLayout *sortLayout = new QGridLayout( sortingGroup->layout(), 2, 2,
296 KDialog::spacingHint() ); 297 KDialog::spacingHint() );
297 sortLayout->setAlignment( Qt::AlignTop ); 298 sortLayout->setAlignment( Qt::AlignTop );
298 299
299 label = new QLabel( i18n( "Criterion:" ), sortingGroup ); 300 label = new QLabel( i18n( "Criterion:" ), sortingGroup );
300 sortLayout->addWidget( label, 0, 0 ); 301 sortLayout->addWidget( label, 0, 0 );
301 302
302#ifndef KAB_EMBEDDED 303#ifndef KAB_EMBEDDED