summaryrefslogtreecommitdiffstats
path: root/libkscreensaver/main.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
commitffe8a83e053396df448e9413828527613ca3bd46 (patch)
treea73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /libkscreensaver/main.cpp
parent682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff)
downloadtdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz
tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkscreensaver/main.cpp')
-rw-r--r--libkscreensaver/main.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/libkscreensaver/main.cpp b/libkscreensaver/main.cpp
index caa9278ff..50e2fb8d7 100644
--- a/libkscreensaver/main.cpp
+++ b/libkscreensaver/main.cpp
@@ -23,7 +23,7 @@
#include <stdio.h>
#include <signal.h>
-#include <qdialog.h>
+#include <tqdialog.h>
#include <klocale.h>
#include <kglobal.h>
#include <kdebug.h>
@@ -40,7 +40,7 @@ extern "C"
extern const char *kss_description;
extern const char *kss_version;
KScreenSaver *kss_create( WId d );
- QDialog *kss_setup();
+ TQDialog *kss_setup();
}
static const KCmdLineOptions options[] =
@@ -65,13 +65,13 @@ static void crashHandler( int )
class DemoWindow : public QWidget
{
public:
- DemoWindow() : QWidget()
+ DemoWindow() : TQWidget()
{
setFixedSize(600, 420);
}
protected:
- virtual void keyPressEvent(QKeyEvent *e)
+ virtual void keyPressEvent(TQKeyEvent *e)
{
if (e->ascii() == 'q')
{
@@ -79,7 +79,7 @@ protected:
}
}
- virtual void closeEvent( QCloseEvent * )
+ virtual void closeEvent( TQCloseEvent * )
{
kapp->quit();
}
@@ -112,7 +112,7 @@ KDE_EXPORT int main(int argc, char *argv[])
if (args->isSet("setup"))
{
- QDialog *dlg = kss_setup();
+ TQDialog *dlg = kss_setup();
args->clear();
dlg->exec();
delete dlg;
@@ -139,7 +139,7 @@ KDE_EXPORT int main(int argc, char *argv[])
if (saveWin == 0)
{
demoWidget = new DemoWindow();
- demoWidget->setBackgroundMode(QWidget::NoBackground);
+ demoWidget->setBackgroundMode(TQWidget::NoBackground);
saveWin = demoWidget->winId();
app.setMainWidget(demoWidget);
app.processEvents();