summaryrefslogtreecommitdiffstats
path: root/kscreensaver
diff options
context:
space:
mode:
Diffstat (limited to 'kscreensaver')
-rw-r--r--kscreensaver/blankscrn.cpp24
-rw-r--r--kscreensaver/blankscrn.h14
-rw-r--r--kscreensaver/random.cpp40
-rw-r--r--kscreensaver/random.h8
4 files changed, 43 insertions, 43 deletions
diff --git a/kscreensaver/blankscrn.cpp b/kscreensaver/blankscrn.cpp
index 6b0b974c9..1f57726b2 100644
--- a/kscreensaver/blankscrn.cpp
+++ b/kscreensaver/blankscrn.cpp
@@ -8,8 +8,8 @@
// 2001/03/04 Converted to use libkscreensaver by Martin R. Jones
#include <stdlib.h>
-#include <qlabel.h>
-#include <qlayout.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
#include <kapplication.h>
#include <klocale.h>
#include <kconfig.h>
@@ -32,7 +32,7 @@ extern "C"
return new KBlankSaver( id );
}
- KDE_EXPORT QDialog* kss_setup()
+ KDE_EXPORT TQDialog* kss_setup()
{
return new KBlankSetup();
}
@@ -41,25 +41,25 @@ extern "C"
//-----------------------------------------------------------------------------
// dialog to setup screen saver parameters
//
-KBlankSetup::KBlankSetup( QWidget *parent, const char *name )
+KBlankSetup::KBlankSetup( TQWidget *parent, const char *name )
: KDialogBase( parent, name, true, i18n( "Setup Blank Screen Saver" ),
Ok|Cancel, Ok, true )
{
readSettings();
- QFrame *main = makeMainWidget();
- QGridLayout *grid = new QGridLayout(main, 4, 2, 0, spacingHint() );
+ TQFrame *main = makeMainWidget();
+ TQGridLayout *grid = new TQGridLayout(main, 4, 2, 0, spacingHint() );
- QLabel *label = new QLabel( i18n("Color:"), main );
+ TQLabel *label = new TQLabel( i18n("Color:"), main );
grid->addWidget(label, 0, 0);
KColorButton *colorPush = new KColorButton( color, main );
colorPush->setMinimumWidth(80);
- connect( colorPush, SIGNAL( changed(const QColor &) ),
- SLOT( slotColor(const QColor &) ) );
+ connect( colorPush, TQT_SIGNAL( changed(const TQColor &) ),
+ TQT_SLOT( slotColor(const TQColor &) ) );
grid->addWidget(colorPush, 1, 0);
- preview = new QWidget( main );
+ preview = new TQWidget( main );
preview->setFixedSize( 220, 165 );
preview->setBackgroundColor( black );
preview->show(); // otherwise saver does not get correct size
@@ -81,7 +81,7 @@ void KBlankSetup::readSettings()
color = config->readColorEntry( "Color", &black );
}
-void KBlankSetup::slotColor( const QColor &col )
+void KBlankSetup::slotColor( const TQColor &col )
{
color = col;
saver->setColor( color );
@@ -112,7 +112,7 @@ KBlankSaver::~KBlankSaver()
}
// set the color
-void KBlankSaver::setColor( const QColor &col )
+void KBlankSaver::setColor( const TQColor &col )
{
color = col;
blank();
diff --git a/kscreensaver/blankscrn.h b/kscreensaver/blankscrn.h
index 667920cb1..ce9e129b4 100644
--- a/kscreensaver/blankscrn.h
+++ b/kscreensaver/blankscrn.h
@@ -8,7 +8,7 @@
#ifndef __BLANKSCRN_H__
#define __BLANKSCRN_H__
-#include <qcolor.h>
+#include <tqcolor.h>
#include <kdialogbase.h>
#include <kscreensaver.h>
@@ -22,34 +22,34 @@ public:
KBlankSaver( WId drawable );
virtual ~KBlankSaver();
- void setColor( const QColor &col );
+ void setColor( const TQColor &col );
private:
void readSettings();
void blank();
private:
- QColor color;
+ TQColor color;
};
class KBlankSetup : public KDialogBase
{
Q_OBJECT
public:
- KBlankSetup( QWidget *parent = NULL, const char *name = NULL );
+ KBlankSetup( TQWidget *parent = NULL, const char *name = NULL );
protected:
void readSettings();
private slots:
- void slotColor( const QColor & );
+ void slotColor( const TQColor & );
void slotOk();
private:
- QWidget *preview;
+ TQWidget *preview;
KBlankSaver *saver;
- QColor color;
+ TQColor color;
};
#endif
diff --git a/kscreensaver/random.cpp b/kscreensaver/random.cpp
index df971d238..c1cd8dcad 100644
--- a/kscreensaver/random.cpp
+++ b/kscreensaver/random.cpp
@@ -14,11 +14,11 @@
#include <time.h>
#include <unistd.h>
-#include <qtextstream.h>
-#include <qlayout.h>
-#include <qframe.h>
-#include <qcheckbox.h>
-#include <qwidget.h>
+#include <tqtextstream.h>
+#include <tqlayout.h>
+#include <tqframe.h>
+#include <tqcheckbox.h>
+#include <tqwidget.h>
#include <kapplication.h>
#include <kstandarddirs.h>
@@ -96,10 +96,10 @@ int main(int argc, char *argv[])
KGlobal::dirs()->addResourceType("scrsav",
KGlobal::dirs()->kde_default("apps") +
"System/ScreenSavers/");
- QStringList tempSaverFileList = KGlobal::dirs()->findAllResources("scrsav",
+ TQStringList tempSaverFileList = KGlobal::dirs()->findAllResources("scrsav",
"*.desktop", false, true);
- QStringList saverFileList;
+ TQStringList saverFileList;
KConfig type("krandom.kssrc");
type.setGroup("Settings");
@@ -114,7 +114,7 @@ int main(int argc, char *argv[])
if(!saver.tryExec())
continue;
kdDebug() << "read X-KDE-Type" << endl;
- QString saverType = saver.readEntry("X-KDE-Type");
+ TQString saverType = saver.readEntry("X-KDE-Type");
if (saverType.isEmpty()) // no X-KDE-Type defined so must be OK
{
@@ -122,8 +122,8 @@ int main(int argc, char *argv[])
}
else
{
- QStringList saverTypes = QStringList::split(";", saverType);
- for (QStringList::ConstIterator it = saverTypes.begin(); it != saverTypes.end(); ++it )
+ TQStringList saverTypes = TQStringList::split(";", saverType);
+ for (TQStringList::ConstIterator it = saverTypes.begin(); it != saverTypes.end(); ++it )
{
kdDebug() << "saverTypes is "<< *it << endl;
if (*it == "ManipulateScreen")
@@ -155,11 +155,11 @@ int main(int argc, char *argv[])
KRandomSequence rnd;
int indx = rnd.getLong(saverFileList.count());
- QString filename = *(saverFileList.at(indx));
+ TQString filename = *(saverFileList.at(indx));
KDesktopFile config(filename, true);
- QString cmd;
+ TQString cmd;
if (windowId && config.hasActionGroup("InWindow"))
{
config.setActionGroup("InWindow");
@@ -170,10 +170,10 @@ int main(int argc, char *argv[])
}
cmd = config.readPathEntry("Exec");
- QTextStream ts(&cmd, IO_ReadOnly);
- QString word;
+ TQTextStream ts(&cmd, IO_ReadOnly);
+ TQString word;
ts >> word;
- QString exeFile = KStandardDirs::findExe(word);
+ TQString exeFile = KStandardDirs::findExe(word);
if (!exeFile.isEmpty())
{
@@ -211,18 +211,18 @@ int main(int argc, char *argv[])
}
-KRandomSetup::KRandomSetup( QWidget *parent, const char *name )
+KRandomSetup::KRandomSetup( TQWidget *parent, const char *name )
: KDialogBase( parent, name, true, i18n( "Setup Random Screen Saver" ),
Ok|Cancel, Ok, true )
{
- QFrame *main = makeMainWidget();
- QGridLayout *grid = new QGridLayout(main, 4, 2, 0, spacingHint() );
+ TQFrame *main = makeMainWidget();
+ TQGridLayout *grid = new TQGridLayout(main, 4, 2, 0, spacingHint() );
- openGL = new QCheckBox( i18n("Use OpenGL screen savers"), main );
+ openGL = new TQCheckBox( i18n("Use OpenGL screen savers"), main );
grid->addWidget(openGL, 0, 0);
- manipulateScreen = new QCheckBox(i18n("Use screen savers that manipulate the screen"), main);
+ manipulateScreen = new TQCheckBox(i18n("Use screen savers that manipulate the screen"), main);
grid->addWidget(manipulateScreen, 1, 0);
setMinimumSize( sizeHint() );
diff --git a/kscreensaver/random.h b/kscreensaver/random.h
index 9f47a1002..aa69fcb71 100644
--- a/kscreensaver/random.h
+++ b/kscreensaver/random.h
@@ -21,13 +21,13 @@ class KRandomSetup : public KDialogBase
{
Q_OBJECT
public:
- KRandomSetup( QWidget *parent = NULL, const char *name = NULL );
+ KRandomSetup( TQWidget *parent = NULL, const char *name = NULL );
private:
- QWidget *preview;
- QCheckBox *openGL;
- QCheckBox *manipulateScreen;
+ TQWidget *preview;
+ TQCheckBox *openGL;
+ TQCheckBox *manipulateScreen;
private slots: