summaryrefslogtreecommitdiffstats
path: root/kitchensync/src/pluginpicker.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 /kitchensync/src/pluginpicker.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 'kitchensync/src/pluginpicker.cpp')
-rw-r--r--kitchensync/src/pluginpicker.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/kitchensync/src/pluginpicker.cpp b/kitchensync/src/pluginpicker.cpp
index 5fe4b5e81..d981599bd 100644
--- a/kitchensync/src/pluginpicker.cpp
+++ b/kitchensync/src/pluginpicker.cpp
@@ -31,23 +31,23 @@
#include <kiconloader.h>
#include <klocale.h>
-#include <qlabel.h>
-#include <qlayout.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
PluginItem::PluginItem( KWidgetList *list, const QSync::Plugin &plugin )
: KWidgetListItem( list ), mPlugin( plugin )
{
- QString iconName = MemberInfo::pluginIconName( mPlugin.name() );
- QGridLayout *layout = new QGridLayout( this, 2, 2, KDialog::marginHint(), KDialog::spacingHint() );
+ TQString iconName = MemberInfo::pluginIconName( mPlugin.name() );
+ TQGridLayout *layout = new TQGridLayout( this, 2, 2, KDialog::marginHint(), KDialog::spacingHint() );
- QLabel *icon = new QLabel( this );
+ TQLabel *icon = new TQLabel( this );
icon->setPixmap( KGlobal::iconLoader()->loadIcon( iconName, KIcon::Desktop ) );
icon->setFixedSize( icon->sizeHint() );
- QLabel *name = new QLabel( plugin.longName(), this );
- QLabel *description = new QLabel( plugin.description(), this );
+ TQLabel *name = new TQLabel( plugin.longName(), this );
+ TQLabel *description = new TQLabel( plugin.description(), this );
- QFont font = name->font();
+ TQFont font = name->font();
font.setBold( true );
name->setFont( font );
@@ -57,16 +57,16 @@ PluginItem::PluginItem( KWidgetList *list, const QSync::Plugin &plugin )
}
-PluginPicker::PluginPicker( QWidget *parent )
- : QWidget( parent )
+PluginPicker::PluginPicker( TQWidget *parent )
+ : TQWidget( parent )
{
- QBoxLayout *layout = new QVBoxLayout( this );
+ TQBoxLayout *layout = new TQVBoxLayout( this );
mPluginList = new KWidgetList( this );
layout->addWidget( mPluginList );
- connect( mPluginList, SIGNAL( doubleClicked( KWidgetListItem* ) ),
- SIGNAL( selected() ) );
+ connect( mPluginList, TQT_SIGNAL( doubleClicked( KWidgetListItem* ) ),
+ TQT_SIGNAL( selected() ) );
updatePluginList();
@@ -94,19 +94,19 @@ QSync::Plugin PluginPicker::selectedPlugin() const
}
-PluginPickerDialog::PluginPickerDialog( QWidget *parent )
+PluginPickerDialog::PluginPickerDialog( TQWidget *parent )
: KDialogBase( parent, 0, true, i18n("Select Member Type"), Ok | Cancel )
{
- QFrame *topFrame = makeMainWidget();
+ TQFrame *topFrame = makeMainWidget();
- QBoxLayout *topLayout = new QVBoxLayout( topFrame );
+ TQBoxLayout *topLayout = new TQVBoxLayout( topFrame );
mPicker = new PluginPicker( topFrame );
topLayout->addWidget( mPicker );
- connect( mPicker, SIGNAL( selected() ), SLOT( slotOk() ) );
+ connect( mPicker, TQT_SIGNAL( selected() ), TQT_SLOT( slotOk() ) );
- setInitialSize( QSize( 460, 380 ) );
+ setInitialSize( TQSize( 460, 380 ) );
}
QSync::Plugin PluginPickerDialog::selectedPlugin() const
@@ -114,7 +114,7 @@ QSync::Plugin PluginPickerDialog::selectedPlugin() const
return mPicker->selectedPlugin();
}
-QSync::Plugin PluginPickerDialog::getPlugin( QWidget *parent )
+QSync::Plugin PluginPickerDialog::getPlugin( TQWidget *parent )
{
PluginPickerDialog dlg( parent );
if ( dlg.exec() )