summaryrefslogtreecommitdiffstats
path: root/kaddressbook/printing/selectionpage.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /kaddressbook/printing/selectionpage.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kaddressbook/printing/selectionpage.cpp')
-rw-r--r--kaddressbook/printing/selectionpage.cpp84
1 files changed, 42 insertions, 42 deletions
diff --git a/kaddressbook/printing/selectionpage.cpp b/kaddressbook/printing/selectionpage.cpp
index bf6d71e00..3e8bde5f8 100644
--- a/kaddressbook/printing/selectionpage.cpp
+++ b/kaddressbook/printing/selectionpage.cpp
@@ -25,80 +25,80 @@
#include <kdialog.h>
#include <klocale.h>
-#include <qbuttongroup.h>
-#include <qcombobox.h>
-#include <qheader.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qlistview.h>
-#include <qpushbutton.h>
-#include <qradiobutton.h>
-#include <qstringlist.h>
-#include <qwhatsthis.h>
+#include <tqbuttongroup.h>
+#include <tqcombobox.h>
+#include <tqheader.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqlistview.h>
+#include <tqpushbutton.h>
+#include <tqradiobutton.h>
+#include <tqstringlist.h>
+#include <tqwhatsthis.h>
#include "selectionpage.h"
-SelectionPage::SelectionPage( QWidget* parent, const char* name )
- : QWidget( parent, name )
+SelectionPage::SelectionPage( TQWidget* parent, const char* name )
+ : TQWidget( parent, name )
{
setCaption( i18n( "Choose Which Contacts to Print" ) );
- QVBoxLayout *topLayout = new QVBoxLayout( this, KDialog::marginHint(),
+ TQVBoxLayout *topLayout = new TQVBoxLayout( this, KDialog::marginHint(),
KDialog::spacingHint() );
- QLabel *label = new QLabel( i18n( "Which contacts do you want to print?" ), this );
+ TQLabel *label = new TQLabel( i18n( "Which contacts do you want to print?" ), this );
topLayout->addWidget( label );
- mButtonGroup = new QButtonGroup( this );
- mButtonGroup->setFrameShape( QButtonGroup::NoFrame );
+ mButtonGroup = new TQButtonGroup( this );
+ mButtonGroup->setFrameShape( TQButtonGroup::NoFrame );
mButtonGroup->setColumnLayout( 0, Qt::Vertical );
mButtonGroup->layout()->setSpacing( KDialog::spacingHint() );
mButtonGroup->layout()->setMargin( KDialog::marginHint() );
- QGridLayout *groupLayout = new QGridLayout( mButtonGroup->layout() );
+ TQGridLayout *groupLayout = new TQGridLayout( mButtonGroup->layout() );
groupLayout->setAlignment( Qt::AlignTop );
- mUseWholeBook = new QRadioButton( i18n( "&All contacts" ), mButtonGroup );
+ mUseWholeBook = new TQRadioButton( i18n( "&All contacts" ), mButtonGroup );
mUseWholeBook->setChecked( true );
- QWhatsThis::add( mUseWholeBook, i18n( "Print the entire address book" ) );
+ TQWhatsThis::add( mUseWholeBook, i18n( "Print the entire address book" ) );
groupLayout->addWidget( mUseWholeBook, 0, 0 );
- mUseSelection = new QRadioButton( i18n( "&Selected contacts" ), mButtonGroup );
- QWhatsThis::add( mUseSelection, i18n( "Only print contacts selected in KAddressBook.\n"
+ mUseSelection = new TQRadioButton( i18n( "&Selected contacts" ), mButtonGroup );
+ TQWhatsThis::add( mUseSelection, i18n( "Only print contacts selected in KAddressBook.\n"
"This option is disabled if no contacts are selected." ) );
groupLayout->addWidget( mUseSelection, 1, 0 );
- mUseFilters = new QRadioButton( i18n( "Contacts matching &filter" ), mButtonGroup );
- QWhatsThis::add( mUseFilters, i18n( "Only print contacts matching the selected filter.\n"
+ mUseFilters = new TQRadioButton( i18n( "Contacts matching &filter" ), mButtonGroup );
+ TQWhatsThis::add( mUseFilters, i18n( "Only print contacts matching the selected filter.\n"
"This option is disabled if you have not defined any filters." ) );
groupLayout->addWidget( mUseFilters, 2, 0 );
- mUseCategories = new QRadioButton( i18n( "Category &members" ), mButtonGroup );
- QWhatsThis::add( mUseCategories, i18n( "Only print contacts who are members of a category that is checked on the list to the left.\n"
+ mUseCategories = new TQRadioButton( i18n( "Category &members" ), mButtonGroup );
+ TQWhatsThis::add( mUseCategories, i18n( "Only print contacts who are members of a category that is checked on the list to the left.\n"
"This option is disabled if you have no categories." ) );
groupLayout->addWidget( mUseCategories, 3, 0, Qt::AlignTop );
- mFiltersCombo = new QComboBox( false, mButtonGroup );
- QWhatsThis::add( mFiltersCombo, i18n( "Select a filter to decide which contacts to print." ) );
+ mFiltersCombo = new TQComboBox( false, mButtonGroup );
+ TQWhatsThis::add( mFiltersCombo, i18n( "Select a filter to decide which contacts to print." ) );
groupLayout->addWidget( mFiltersCombo, 2, 1 );
- mCategoriesView = new QListView( mButtonGroup );
+ mCategoriesView = new TQListView( mButtonGroup );
mCategoriesView->addColumn( "" );
mCategoriesView->header()->hide();
- QWhatsThis::add( mCategoriesView, i18n( "Check the categories whose members you want to print." ) );
+ TQWhatsThis::add( mCategoriesView, i18n( "Check the categories whose members you want to print." ) );
groupLayout->addWidget( mCategoriesView, 3, 1 );
topLayout->addWidget( mButtonGroup );
- connect( mFiltersCombo, SIGNAL( activated(int) ), SLOT( filterChanged(int) ) );
- connect( mCategoriesView, SIGNAL( clicked(QListViewItem*) ), SLOT( categoryClicked(QListViewItem*) ) );
+ connect( mFiltersCombo, TQT_SIGNAL( activated(int) ), TQT_SLOT( filterChanged(int) ) );
+ connect( mCategoriesView, TQT_SIGNAL( clicked(TQListViewItem*) ), TQT_SLOT( categoryClicked(TQListViewItem*) ) );
}
SelectionPage::~SelectionPage()
{
}
-void SelectionPage::setFilters( const QStringList& filters )
+void SelectionPage::setFilters( const TQStringList& filters )
{
mFiltersCombo->clear();
mFiltersCombo->insertStringList( filters );
@@ -106,7 +106,7 @@ void SelectionPage::setFilters( const QStringList& filters )
mUseFilters->setEnabled( filters.count() > 0 );
}
-QString SelectionPage::filter() const
+TQString SelectionPage::filter() const
{
return mFiltersCombo->currentText();
}
@@ -116,22 +116,22 @@ bool SelectionPage::useFilters() const
return mUseFilters->isChecked();
}
-void SelectionPage::setCategories( const QStringList& list )
+void SelectionPage::setCategories( const TQStringList& list )
{
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
for ( it = list.begin(); it != list.end(); ++it )
- new QCheckListItem( mCategoriesView, *it, QCheckListItem::CheckBox );
+ new TQCheckListItem( mCategoriesView, *it, TQCheckListItem::CheckBox );
mUseCategories->setEnabled( list.count() > 0 );
}
-QStringList SelectionPage::categories() const
+TQStringList SelectionPage::categories() const
{
- QStringList list;
+ TQStringList list;
- QListViewItemIterator it( mCategoriesView );
+ TQListViewItemIterator it( mCategoriesView );
for ( ; it.current(); ++it ) {
- QCheckListItem *qcli = static_cast<QCheckListItem*>(it.current());
+ TQCheckListItem *qcli = static_cast<TQCheckListItem*>(it.current());
if ( qcli->isOn() )
list.append( it.current()->text( 0 ) );
}
@@ -159,9 +159,9 @@ void SelectionPage::filterChanged( int )
mUseFilters->setChecked( true );
}
-void SelectionPage::categoryClicked( QListViewItem *i )
+void SelectionPage::categoryClicked( TQListViewItem *i )
{
- QCheckListItem *qcli = static_cast<QCheckListItem*>( i );
+ TQCheckListItem *qcli = static_cast<TQCheckListItem*>( i );
if ( i && qcli->isOn() )
mUseCategories->setChecked( true );
}