summaryrefslogtreecommitdiffstats
path: root/libk3b/tools/k3bmultichoicedialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libk3b/tools/k3bmultichoicedialog.cpp')
-rw-r--r--libk3b/tools/k3bmultichoicedialog.cpp76
1 files changed, 38 insertions, 38 deletions
diff --git a/libk3b/tools/k3bmultichoicedialog.cpp b/libk3b/tools/k3bmultichoicedialog.cpp
index 4c12554..e4cc364 100644
--- a/libk3b/tools/k3bmultichoicedialog.cpp
+++ b/libk3b/tools/k3bmultichoicedialog.cpp
@@ -21,12 +21,12 @@
#include <kapplication.h>
#include <kiconloader.h>
-#include <qlayout.h>
-#include <qsignalmapper.h>
-#include <qptrlist.h>
-#include <qlabel.h>
-#include <qhbox.h>
-#include <qmessagebox.h>
+#include <tqlayout.h>
+#include <tqsignalmapper.h>
+#include <tqptrlist.h>
+#include <tqlabel.h>
+#include <tqhbox.h>
+#include <tqmessagebox.h>
class K3bMultiChoiceDialog::Private
@@ -37,71 +37,71 @@ public:
buttonLayout(0) {
}
- QSignalMapper* mapper;
- QPtrList<KPushButton> buttons;
- QHBoxLayout* buttonLayout;
+ TQSignalMapper* mapper;
+ TQPtrList<KPushButton> buttons;
+ TQHBoxLayout* buttonLayout;
bool buttonClicked;
};
// from kmessagebox.cpp
-static QPixmap themedMessageBoxIcon(QMessageBox::Icon icon)
+static TQPixmap themedMessageBoxIcon(TQMessageBox::Icon icon)
{
- QString icon_name;
+ TQString icon_name;
switch(icon) {
- case QMessageBox::NoIcon:
- return QPixmap();
+ case TQMessageBox::NoIcon:
+ return TQPixmap();
break;
- case QMessageBox::Information:
+ case TQMessageBox::Information:
icon_name = "messagebox_info";
break;
- case QMessageBox::Warning:
+ case TQMessageBox::Warning:
icon_name = "messagebox_warning";
break;
- case QMessageBox::Critical:
+ case TQMessageBox::Critical:
icon_name = "messagebox_critical";
break;
default:
break;
}
- QPixmap ret = KApplication::kApplication()->iconLoader()->loadIcon(icon_name, KIcon::NoGroup, KIcon::SizeMedium, KIcon::DefaultState, 0, true);
+ TQPixmap ret = KApplication::kApplication()->iconLoader()->loadIcon(icon_name, KIcon::NoGroup, KIcon::SizeMedium, KIcon::DefaultState, 0, true);
if (ret.isNull())
- return QMessageBox::standardIcon(icon);
+ return TQMessageBox::standardIcon(icon);
else
return ret;
}
-K3bMultiChoiceDialog::K3bMultiChoiceDialog( const QString& caption,
- const QString& text,
- QMessageBox::Icon icon,
- QWidget* parent, const char* name )
- : KDialog( parent, name )
+K3bMultiChoiceDialog::K3bMultiChoiceDialog( const TQString& caption,
+ const TQString& text,
+ TQMessageBox::Icon icon,
+ TQWidget* tqparent, const char* name )
+ : KDialog( tqparent, name )
{
d = new Private();
- d->mapper = new QSignalMapper( this );
- connect( d->mapper, SIGNAL(mapped(int)), this, SLOT(done(int)) );
+ d->mapper = new TQSignalMapper( TQT_TQOBJECT(this) );
+ connect( d->mapper, TQT_SIGNAL(mapped(int)), this, TQT_SLOT(done(int)) );
setCaption( caption );
- QGridLayout* mainGrid = new QGridLayout( this );
+ TQGridLayout* mainGrid = new TQGridLayout( this );
mainGrid->setSpacing( spacingHint() );
mainGrid->setMargin( marginHint() );
- QHBox* contents = new QHBox( this );
+ TQHBox* contents = new TQHBox( this );
contents->setSpacing( KDialog::spacingHint()*2 );
contents->setMargin( 0 );
- QLabel* pixLabel = new QLabel( contents );
+ TQLabel* pixLabel = new TQLabel( contents );
pixLabel->setPixmap( themedMessageBoxIcon( icon ) );
pixLabel->setScaledContents( false );
- QLabel* label = new K3bRichTextLabel( text, contents );
+ TQLabel* label = new K3bRichTextLabel( text, contents );
contents->setStretchFactor( label, 1 );
- d->buttonLayout = new QHBoxLayout;
+ d->buttonLayout = new TQHBoxLayout;
d->buttonLayout->setSpacing( spacingHint() );
d->buttonLayout->setMargin( 0 );
@@ -126,8 +126,8 @@ int K3bMultiChoiceDialog::addButton( const KGuiItem& b )
KPushButton* button = new KPushButton( b, this );
d->buttonLayout->add( button );
d->buttons.append(button);
- d->mapper->setMapping( button, d->buttons.count() );
- connect( button, SIGNAL(clicked()), d->mapper, SLOT(map()) );
+ d->mapper->setMapping( TQT_TQOBJECT(button), d->buttons.count() );
+ connect( button, TQT_SIGNAL(clicked()), d->mapper, TQT_SLOT(map()) );
return d->buttons.count();
}
@@ -146,7 +146,7 @@ int K3bMultiChoiceDialog::exec()
}
-void K3bMultiChoiceDialog::closeEvent( QCloseEvent* e )
+void K3bMultiChoiceDialog::closeEvent( TQCloseEvent* e )
{
// make sure the dialog can only be closed by the buttons
// otherwise we may get an undefined return value in exec
@@ -158,10 +158,10 @@ void K3bMultiChoiceDialog::closeEvent( QCloseEvent* e )
}
-int K3bMultiChoiceDialog::choose( const QString& caption,
- const QString& text,
- QMessageBox::Icon icon,
- QWidget* parent,
+int K3bMultiChoiceDialog::choose( const TQString& caption,
+ const TQString& text,
+ TQMessageBox::Icon icon,
+ TQWidget* tqparent,
const char* name,
int buttonCount,
const KGuiItem& b1,
@@ -171,7 +171,7 @@ int K3bMultiChoiceDialog::choose( const QString& caption,
const KGuiItem& b5,
const KGuiItem& b6 )
{
- K3bMultiChoiceDialog dlg( caption, text, icon, parent, name );
+ K3bMultiChoiceDialog dlg( caption, text, icon, tqparent, name );
dlg.addButton( b1 );
if( buttonCount > 1 )
dlg.addButton( b2 );