summaryrefslogtreecommitdiffstats
path: root/kdialog
diff options
context:
space:
mode:
Diffstat (limited to 'kdialog')
-rw-r--r--kdialog/kdialog.cpp50
-rw-r--r--kdialog/klistboxdialog.cpp2
-rw-r--r--kdialog/widgets.cpp8
3 files changed, 30 insertions, 30 deletions
diff --git a/kdialog/kdialog.cpp b/kdialog/kdialog.cpp
index 8cf9b581f..9914306ba 100644
--- a/kdialog/kdialog.cpp
+++ b/kdialog/kdialog.cpp
@@ -104,14 +104,14 @@ static KCmdLineOptions options[] =
// this class hooks into the eventloop and outputs the id
// of shown dialogs or makes the dialog transient for other winids.
// Will destroy itself on app exit.
-class WinIdEmbedder: public QObject
+class WinIdEmbedder: public TQObject
{
public:
WinIdEmbedder(bool printID, WId winId):
- TQObject(qApp), print(printID), id(winId)
+ TQObject(tqApp), print(printID), id(winId)
{
- if (qApp)
- qApp->installEventFilter(this);
+ if (tqApp)
+ tqApp->installEventFilter(this);
}
protected:
bool eventFilter(TQObject *o, TQEvent *e);
@@ -125,7 +125,7 @@ bool WinIdEmbedder::eventFilter(TQObject *o, TQEvent *e)
if (e->type() == TQEvent::Show && o->isWidgetType()
&& o->inherits("KDialog"))
{
- TQWidget *w = static_cast<TQWidget*>(o);
+ TQWidget *w = TQT_TQWIDGET(o);
if (print)
cout << "winId: " << w->winId() << endl;
#ifdef Q_WS_X11
@@ -241,9 +241,9 @@ static int directCommand(KCmdLineArgs *args)
TQString text = TQString::fromLocal8Bit(args->getOption( option ));
int pos;
- while ((pos = text.find( TQString::fromLatin1("\\n") )) >= 0)
+ while ((pos = text.tqfind( TQString::tqfromLatin1("\\n") )) >= 0)
{
- text.replace(pos, 2, TQString::fromLatin1("\n"));
+ text.tqreplace(pos, 2, TQString::tqfromLatin1("\n"));
}
if ( type == KMessageBox::WarningContinueCancel ) {
@@ -597,43 +597,43 @@ static int directCommand(KCmdLineArgs *args)
contextStr = TQString::fromLocal8Bit(args->arg(0));
}
KIcon::Group group = KIcon::NoGroup;
- if ( groupStr == TQString::fromLatin1( "Desktop" ) )
+ if ( groupStr == TQString::tqfromLatin1( "Desktop" ) )
group = KIcon::Desktop;
- else if ( groupStr == TQString::fromLatin1( "Toolbar" ) )
+ else if ( groupStr == TQString::tqfromLatin1( "Toolbar" ) )
group = KIcon::Toolbar;
- else if ( groupStr == TQString::fromLatin1( "MainToolbar" ) )
+ else if ( groupStr == TQString::tqfromLatin1( "MainToolbar" ) )
group = KIcon::MainToolbar;
- else if ( groupStr == TQString::fromLatin1( "Small" ) )
+ else if ( groupStr == TQString::tqfromLatin1( "Small" ) )
group = KIcon::Small;
- else if ( groupStr == TQString::fromLatin1( "Panel" ) )
+ else if ( groupStr == TQString::tqfromLatin1( "Panel" ) )
group = KIcon::Panel;
- else if ( groupStr == TQString::fromLatin1( "User" ) )
+ else if ( groupStr == TQString::tqfromLatin1( "User" ) )
group = KIcon::User;
KIcon::Context context = KIcon::Any;
// From kicontheme.cpp
- if ( contextStr == TQString::fromLatin1( "Devices" ) )
+ if ( contextStr == TQString::tqfromLatin1( "Devices" ) )
context = KIcon::Device;
- else if ( contextStr == TQString::fromLatin1( "MimeTypes" ) )
+ else if ( contextStr == TQString::tqfromLatin1( "MimeTypes" ) )
context = KIcon::MimeType;
- else if ( contextStr == TQString::fromLatin1( "FileSystems" ) )
+ else if ( contextStr == TQString::tqfromLatin1( "FileSystems" ) )
context = KIcon::FileSystem;
- else if ( contextStr == TQString::fromLatin1( "Applications" ) )
+ else if ( contextStr == TQString::tqfromLatin1( "Applications" ) )
context = KIcon::Application;
- else if ( contextStr == TQString::fromLatin1( "Actions" ) )
+ else if ( contextStr == TQString::tqfromLatin1( "Actions" ) )
context = KIcon::Action;
- else if ( contextStr == QString::fromLatin1( "Animations" ) )
+ else if ( contextStr == TQString::tqfromLatin1( "Animations" ) )
context = KIcon::Animation;
- else if ( contextStr == QString::fromLatin1( "Categories" ) )
+ else if ( contextStr == TQString::tqfromLatin1( "Categories" ) )
context = KIcon::Category;
- else if ( contextStr == QString::fromLatin1( "Emblems" ) )
+ else if ( contextStr == TQString::tqfromLatin1( "Emblems" ) )
context = KIcon::Emblem;
- else if ( contextStr == QString::fromLatin1( "Emotes" ) )
+ else if ( contextStr == TQString::tqfromLatin1( "Emotes" ) )
context = KIcon::Emote;
- else if ( contextStr == QString::fromLatin1( "International" ) )
+ else if ( contextStr == TQString::tqfromLatin1( "International" ) )
context = KIcon::International;
- else if ( contextStr == QString::fromLatin1( "Places" ) )
+ else if ( contextStr == TQString::tqfromLatin1( "Places" ) )
context = KIcon::Place;
- else if ( contextStr == QString::fromLatin1( "Status" ) )
+ else if ( contextStr == TQString::tqfromLatin1( "Status" ) )
context = KIcon::StatusIcon;
KIconDialog dlg(0, "icon dialog");
diff --git a/kdialog/klistboxdialog.cpp b/kdialog/klistboxdialog.cpp
index d7abfb694..23fe18f53 100644
--- a/kdialog/klistboxdialog.cpp
+++ b/kdialog/klistboxdialog.cpp
@@ -32,7 +32,7 @@ KListBoxDialog::KListBoxDialog(TQString text, TQWidget *parent)
TQVBox *page = makeVBoxMainWidget();
label = new TQLabel(text, page);
- label->setAlignment(AlignCenter);
+ label->tqsetAlignment(AlignCenter);
table = new TQListBox(page);
table->setFocus();
diff --git a/kdialog/widgets.cpp b/kdialog/widgets.cpp
index a2064a5ba..322cf0a0d 100644
--- a/kdialog/widgets.cpp
+++ b/kdialog/widgets.cpp
@@ -130,7 +130,7 @@ int Widgets::textInputBox(TQWidget *parent, int width, int height, const TQStrin
KTextEdit *edit = new KTextEdit( vbox );
edit->setReadOnly(FALSE);
- edit->setTextFormat( Qt::PlainText );
+ edit->setTextFormat( TQt::PlainText );
edit->setFocus();
if( args.count() > 1 )
@@ -218,7 +218,7 @@ bool Widgets::checkList(TQWidget *parent, const TQString& title, const TQString&
table.setCurrentItem(0); // This is to circumvent a Qt bug
for (unsigned int i=0; i+2<args.count(); i += 3) {
- table.setSelected( i/3, args[i+2] == TQString::fromLatin1("on") );
+ table.setSelected( i/3, args[i+2] == TQString::tqfromLatin1("on") );
}
handleXGeometry(&box);
@@ -233,7 +233,7 @@ bool Widgets::checkList(TQWidget *parent, const TQString& title, const TQString&
} else {
for (unsigned int i=0; i<table.count(); i++)
if (table.isSelected(i))
- rs += TQString::fromLatin1("\"") + tags[i] + TQString::fromLatin1("\" ");
+ rs += TQString::tqfromLatin1("\"") + tags[i] + TQString::tqfromLatin1("\" ");
result.append(rs);
}
}
@@ -260,7 +260,7 @@ bool Widgets::radioBox(TQWidget *parent, const TQString& title, const TQString&
table.insertStringList(entries);
for (unsigned int i=0; i+2<args.count(); i += 3) {
- table.setSelected( i/3, args[i+2] == TQString::fromLatin1("on") );
+ table.setSelected( i/3, args[i+2] == TQString::tqfromLatin1("on") );
}
handleXGeometry(&box);