summaryrefslogtreecommitdiffstats
path: root/kicker/kicker/buttons
diff options
context:
space:
mode:
Diffstat (limited to 'kicker/kicker/buttons')
-rw-r--r--kicker/kicker/buttons/bookmarksbutton.cpp6
-rw-r--r--kicker/kicker/buttons/bookmarksbutton.h4
-rw-r--r--kicker/kicker/buttons/browserbutton.cpp30
-rw-r--r--kicker/kicker/buttons/browserbutton.h20
-rw-r--r--kicker/kicker/buttons/desktopbutton.cpp18
-rw-r--r--kicker/kicker/buttons/desktopbutton.h8
-rw-r--r--kicker/kicker/buttons/extensionbutton.cpp10
-rw-r--r--kicker/kicker/buttons/extensionbutton.h8
-rw-r--r--kicker/kicker/buttons/kbutton.cpp8
-rw-r--r--kicker/kicker/buttons/kbutton.h6
-rw-r--r--kicker/kicker/buttons/nonkdeappbutton.cpp50
-rw-r--r--kicker/kicker/buttons/nonkdeappbutton.h36
-rw-r--r--kicker/kicker/buttons/servicebutton.cpp50
-rw-r--r--kicker/kicker/buttons/servicebutton.h18
-rw-r--r--kicker/kicker/buttons/servicemenubutton.cpp14
-rw-r--r--kicker/kicker/buttons/servicemenubutton.h10
-rw-r--r--kicker/kicker/buttons/urlbutton.cpp28
-rw-r--r--kicker/kicker/buttons/urlbutton.h12
-rw-r--r--kicker/kicker/buttons/windowlistbutton.cpp6
-rw-r--r--kicker/kicker/buttons/windowlistbutton.h4
20 files changed, 173 insertions, 173 deletions
diff --git a/kicker/kicker/buttons/bookmarksbutton.cpp b/kicker/kicker/buttons/bookmarksbutton.cpp
index b351af263..e267848ef 100644
--- a/kicker/kicker/buttons/bookmarksbutton.cpp
+++ b/kicker/kicker/buttons/bookmarksbutton.cpp
@@ -21,7 +21,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
******************************************************************/
-#include <qtooltip.h>
+#include <tqtooltip.h>
#include <kaction.h>
#include <kbookmark.h>
@@ -33,7 +33,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "bookmarksbutton.h"
#include "bookmarksbutton.moc"
-BookmarksButton::BookmarksButton(QWidget* parent)
+BookmarksButton::BookmarksButton(TQWidget* parent)
: PanelPopupButton(parent, "BookmarksButton"),
bookmarkParent(0),
bookmarkMenu(0),
@@ -49,7 +49,7 @@ BookmarksButton::BookmarksButton(QWidget* parent)
actionCollection,
true, false);
setPopup(bookmarkParent);
- QToolTip::add(this, i18n("Bookmarks"));
+ TQToolTip::add(this, i18n("Bookmarks"));
setTitle(i18n("Bookmarks"));
setIcon("bookmark");
}
diff --git a/kicker/kicker/buttons/bookmarksbutton.h b/kicker/kicker/buttons/bookmarksbutton.h
index 95ffa9609..3d8518519 100644
--- a/kicker/kicker/buttons/bookmarksbutton.h
+++ b/kicker/kicker/buttons/bookmarksbutton.h
@@ -39,14 +39,14 @@ class BookmarksButton : public PanelPopupButton
Q_OBJECT
public:
- BookmarksButton(QWidget* parent);
+ BookmarksButton(TQWidget* parent);
~BookmarksButton();
void loadConfig(const KConfigGroup& config);
virtual void properties();
protected:
- virtual QString tileName() { return "WindowList"; }
+ virtual TQString tileName() { return "WindowList"; }
virtual void initPopup();
KPopupMenu* bookmarkParent;
diff --git a/kicker/kicker/buttons/browserbutton.cpp b/kicker/kicker/buttons/browserbutton.cpp
index 9a445d218..950882696 100644
--- a/kicker/kicker/buttons/browserbutton.cpp
+++ b/kicker/kicker/buttons/browserbutton.cpp
@@ -21,9 +21,9 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
******************************************************************/
-#include <qtimer.h>
-#include <qtooltip.h>
-#include <qdragobject.h>
+#include <tqtimer.h>
+#include <tqtooltip.h>
+#include <tqdragobject.h>
#include <kconfig.h>
#include <klocale.h>
@@ -38,14 +38,14 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "browserbutton.h"
#include "browserbutton.moc"
-BrowserButton::BrowserButton( const QString& icon, const QString& startDir, QWidget* parent )
+BrowserButton::BrowserButton( const TQString& icon, const TQString& startDir, TQWidget* parent )
: PanelPopupButton( parent, "BrowserButton" )
, topMenu( 0 )
{
initialize( icon, startDir );
}
-BrowserButton::BrowserButton( const KConfigGroup& config, QWidget* parent )
+BrowserButton::BrowserButton( const KConfigGroup& config, TQWidget* parent )
: PanelPopupButton( parent, "BrowserButton" )
, topMenu( 0 )
{
@@ -57,7 +57,7 @@ BrowserButton::~BrowserButton()
delete topMenu;
}
-void BrowserButton::initialize( const QString& icon, const QString& path )
+void BrowserButton::initialize( const TQString& icon, const TQString& path )
{
_icon = icon;
@@ -65,10 +65,10 @@ void BrowserButton::initialize( const QString& icon, const QString& path )
topMenu = new PanelBrowserMenu( path );
setPopup(topMenu);
- _menuTimer = new QTimer( this );
- connect( _menuTimer, SIGNAL(timeout()), SLOT(slotDelayedPopup()) );
+ _menuTimer = new TQTimer( this );
+ connect( _menuTimer, TQT_SIGNAL(timeout()), TQT_SLOT(slotDelayedPopup()) );
- QToolTip::add(this, i18n("Browse: %1").arg(path));
+ TQToolTip::add(this, i18n("Browse: %1").arg(path));
setTitle( path );
setIcon ( _icon );
}
@@ -79,7 +79,7 @@ void BrowserButton::saveConfig( KConfigGroup& config ) const
config.writePathEntry("Path", topMenu->path());
}
-void BrowserButton::dragEnterEvent( QDragEnterEvent *ev )
+void BrowserButton::dragEnterEvent( TQDragEnterEvent *ev )
{
if ((ev->source() != this) && KURLDrag::canDecode(ev))
{
@@ -93,17 +93,17 @@ void BrowserButton::dragEnterEvent( QDragEnterEvent *ev )
PanelButton::dragEnterEvent(ev);
}
-void BrowserButton::dragLeaveEvent( QDragLeaveEvent *ev )
+void BrowserButton::dragLeaveEvent( TQDragLeaveEvent *ev )
{
_menuTimer->stop();
PanelButton::dragLeaveEvent(ev);
}
-void BrowserButton::dropEvent( QDropEvent *ev )
+void BrowserButton::dropEvent( TQDropEvent *ev )
{
KURL path ( topMenu->path() );
_menuTimer->stop();
- KFileItem item( path, QString::fromLatin1( "inode/directory" ), KFileItem::Unknown );
+ KFileItem item( path, TQString::fromLatin1( "inode/directory" ), KFileItem::Unknown );
KonqOperations::doDrop( &item, path, ev, this );
PanelButton::dropEvent(ev);
}
@@ -124,9 +124,9 @@ void BrowserButton::properties()
{
PanelBrowserDialog dlg( topMenu->path(), _icon, this );
- if( dlg.exec() == QDialog::Accepted ){
+ if( dlg.exec() == TQDialog::Accepted ){
_icon = dlg.icon();
- QString path = dlg.path();
+ TQString path = dlg.path();
if ( path != topMenu->path() ) {
delete topMenu;
diff --git a/kicker/kicker/buttons/browserbutton.h b/kicker/kicker/buttons/browserbutton.h
index 00ff0abea..bb08801d9 100644
--- a/kicker/kicker/buttons/browserbutton.h
+++ b/kicker/kicker/buttons/browserbutton.h
@@ -36,8 +36,8 @@ class BrowserButton : public PanelPopupButton
Q_OBJECT
public:
- BrowserButton( const QString& icon, const QString& startDir, QWidget* parent );
- BrowserButton( const KConfigGroup& config, QWidget* parent );
+ BrowserButton( const TQString& icon, const TQString& startDir, TQWidget* parent );
+ BrowserButton( const KConfigGroup& config, TQWidget* parent );
virtual ~BrowserButton();
void saveConfig( KConfigGroup& config ) const;
@@ -49,17 +49,17 @@ protected slots:
virtual void startDrag();
protected:
- void initialize( const QString& icon, const QString& startDir );
- virtual QString tileName() { return "Browser"; }
+ void initialize( const TQString& icon, const TQString& startDir );
+ virtual TQString tileName() { return "Browser"; }
virtual void initPopup();
- virtual void dropEvent(QDropEvent *ev);
- virtual void dragEnterEvent(QDragEnterEvent *ev);
- virtual void dragLeaveEvent(QDragLeaveEvent *ev);
- virtual QString defaultIcon() const { return "kdisknav"; };
+ virtual void dropEvent(TQDropEvent *ev);
+ virtual void dragEnterEvent(TQDragEnterEvent *ev);
+ virtual void dragLeaveEvent(TQDragLeaveEvent *ev);
+ virtual TQString defaultIcon() const { return "kdisknav"; };
PanelBrowserMenu* topMenu;
- QString _icon;
- QTimer *_menuTimer;
+ TQString _icon;
+ TQTimer *_menuTimer;
};
#endif
diff --git a/kicker/kicker/buttons/desktopbutton.cpp b/kicker/kicker/buttons/desktopbutton.cpp
index 3831303d7..9f23741e5 100644
--- a/kicker/kicker/buttons/desktopbutton.cpp
+++ b/kicker/kicker/buttons/desktopbutton.cpp
@@ -21,8 +21,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
******************************************************************/
-#include <qtooltip.h>
-#include <qdragobject.h>
+#include <tqtooltip.h>
+#include <tqdragobject.h>
#include <klocale.h>
#include <kglobalsettings.h>
@@ -36,17 +36,17 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "desktopbutton.h"
#include "desktopbutton.moc"
-DesktopButton::DesktopButton( QWidget* parent )
+DesktopButton::DesktopButton( TQWidget* parent )
: PanelButton( parent, "DesktopButton" )
{
setToggleButton(true);
- QToolTip::add(this, i18n("Show desktop"));
+ TQToolTip::add(this, i18n("Show desktop"));
setTitle(i18n("Desktop Access"));
setIcon("desktop");
- connect( this, SIGNAL(toggled(bool)), this, SLOT(showDesktop(bool)) );
- connect( ShowDesktop::the(), SIGNAL(desktopShown(bool)), this, SLOT(toggle(bool)) );
+ connect( this, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(showDesktop(bool)) );
+ connect( ShowDesktop::the(), TQT_SIGNAL(desktopShown(bool)), this, TQT_SLOT(toggle(bool)) );
setOn( ShowDesktop::the()->desktopShowing() );
}
@@ -65,7 +65,7 @@ void DesktopButton::showDesktop(bool showDesktop)
KickerTip::enableTipping(true);
}
-void DesktopButton::dragEnterEvent( QDragEnterEvent *ev )
+void DesktopButton::dragEnterEvent( TQDragEnterEvent *ev )
{
if ((ev->source() != this) && KURLDrag::canDecode(ev))
ev->accept(rect());
@@ -74,10 +74,10 @@ void DesktopButton::dragEnterEvent( QDragEnterEvent *ev )
PanelButton::dragEnterEvent(ev);
}
-void DesktopButton::dropEvent( QDropEvent *ev )
+void DesktopButton::dropEvent( TQDropEvent *ev )
{
KURL dPath ( KGlobalSettings::desktopPath() );
- KFileItem item( dPath, QString::fromLatin1( "inode/directory" ), KFileItem::Unknown );
+ KFileItem item( dPath, TQString::fromLatin1( "inode/directory" ), KFileItem::Unknown );
KonqOperations::doDrop( &item, dPath, ev, this );
PanelButton::dropEvent(ev);
}
diff --git a/kicker/kicker/buttons/desktopbutton.h b/kicker/kicker/buttons/desktopbutton.h
index 62de4c342..c896bdf92 100644
--- a/kicker/kicker/buttons/desktopbutton.h
+++ b/kicker/kicker/buttons/desktopbutton.h
@@ -34,12 +34,12 @@ class DesktopButton : public PanelButton
Q_OBJECT
public:
- DesktopButton( QWidget* parent );
+ DesktopButton( TQWidget* parent );
protected:
- virtual QString tileName() { return "DesktopButton"; }
- virtual void dragEnterEvent(QDragEnterEvent *ev);
- virtual void dropEvent(QDropEvent *ev);
+ virtual TQString tileName() { return "DesktopButton"; }
+ virtual void dragEnterEvent(TQDragEnterEvent *ev);
+ virtual void dropEvent(TQDropEvent *ev);
protected slots:
void toggle(bool);
diff --git a/kicker/kicker/buttons/extensionbutton.cpp b/kicker/kicker/buttons/extensionbutton.cpp
index 004e0d47b..d4590a024 100644
--- a/kicker/kicker/buttons/extensionbutton.cpp
+++ b/kicker/kicker/buttons/extensionbutton.cpp
@@ -21,7 +21,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
******************************************************************/
-#include <qtooltip.h>
+#include <tqtooltip.h>
#include <kconfig.h>
#include <kpanelmenu.h>
@@ -31,7 +31,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "extensionbutton.h"
#include "extensionbutton.moc"
-ExtensionButton::ExtensionButton( const QString& desktopFile, QWidget* parent )
+ExtensionButton::ExtensionButton( const TQString& desktopFile, TQWidget* parent )
: PanelPopupButton( parent, "ExtensionButton" )
, info( 0 )
, menu( 0 )
@@ -39,13 +39,13 @@ ExtensionButton::ExtensionButton( const QString& desktopFile, QWidget* parent )
initialize( desktopFile );
}
-ExtensionButton::ExtensionButton( const KConfigGroup& config, QWidget* parent )
+ExtensionButton::ExtensionButton( const KConfigGroup& config, TQWidget* parent )
: PanelPopupButton( parent, "extensionbuttton" )
{
initialize( config.readPathEntry("DesktopFile") );
}
-void ExtensionButton::initialize( const QString& desktopFile )
+void ExtensionButton::initialize( const TQString& desktopFile )
{
info = new MenuInfo(desktopFile);
if (!info->isValid())
@@ -56,7 +56,7 @@ void ExtensionButton::initialize( const QString& desktopFile )
menu = info->load(this);
setPopup(menu);
- QToolTip::add(this, info->comment());
+ TQToolTip::add(this, info->comment());
setTitle(info->name());
setIcon(info->icon());
}
diff --git a/kicker/kicker/buttons/extensionbutton.h b/kicker/kicker/buttons/extensionbutton.h
index 0d489f706..48854323e 100644
--- a/kicker/kicker/buttons/extensionbutton.h
+++ b/kicker/kicker/buttons/extensionbutton.h
@@ -34,15 +34,15 @@ class ExtensionButton : public PanelPopupButton
Q_OBJECT
public:
- ExtensionButton( const QString& desktopFile, QWidget* parent );
- ExtensionButton( const KConfigGroup& config, QWidget* parent );
+ ExtensionButton( const TQString& desktopFile, TQWidget* parent );
+ ExtensionButton( const KConfigGroup& config, TQWidget* parent );
~ExtensionButton();
void saveConfig( KConfigGroup& config ) const;
protected:
- void initialize( const QString& desktopFile );
- virtual QString tileName() { return "URL"; }
+ void initialize( const TQString& desktopFile );
+ virtual TQString tileName() { return "URL"; }
virtual void initPopup();
MenuInfo* info;
diff --git a/kicker/kicker/buttons/kbutton.cpp b/kicker/kicker/buttons/kbutton.cpp
index 320a45842..73454b99f 100644
--- a/kicker/kicker/buttons/kbutton.cpp
+++ b/kicker/kicker/buttons/kbutton.cpp
@@ -21,7 +21,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
******************************************************************/
-#include <qtooltip.h>
+#include <tqtooltip.h>
#include <klocale.h>
#include <kapplication.h>
@@ -37,10 +37,10 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "kbutton.h"
#include "kbutton.moc"
-KButton::KButton( QWidget* parent )
+KButton::KButton( TQWidget* parent )
: PanelPopupButton( parent, "KButton" )
{
- QToolTip::add(this, i18n("Applications, tasks and desktop sessions"));
+ TQToolTip::add(this, i18n("Applications, tasks and desktop sessions"));
setTitle(i18n("K Menu"));
setPopup(MenuManager::the()->kmenu());
@@ -64,7 +64,7 @@ KButton::~KButton()
void KButton::properties()
{
- KApplication::startServiceByDesktopName("kmenuedit", QStringList(),
+ KApplication::startServiceByDesktopName("kmenuedit", TQStringList(),
0, 0, 0, "", true);
}
diff --git a/kicker/kicker/buttons/kbutton.h b/kicker/kicker/buttons/kbutton.h
index 6de61181f..bf98e74f8 100644
--- a/kicker/kicker/buttons/kbutton.h
+++ b/kicker/kicker/buttons/kbutton.h
@@ -34,7 +34,7 @@ class KButton : public PanelPopupButton
Q_OBJECT
public:
- KButton( QWidget *parent );
+ KButton( TQWidget *parent );
~KButton();
void loadConfig( const KConfigGroup& config );
@@ -42,9 +42,9 @@ public:
virtual void properties();
protected:
- virtual QString tileName() { return "KMenu"; }
+ virtual TQString tileName() { return "KMenu"; }
virtual void initPopup();
- virtual QString defaultIcon() const { return "go"; }
+ virtual TQString defaultIcon() const { return "go"; }
};
#endif
diff --git a/kicker/kicker/buttons/nonkdeappbutton.cpp b/kicker/kicker/buttons/nonkdeappbutton.cpp
index 9413e8aaa..29b7ddb2e 100644
--- a/kicker/kicker/buttons/nonkdeappbutton.cpp
+++ b/kicker/kicker/buttons/nonkdeappbutton.cpp
@@ -21,8 +21,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
******************************************************************/
-#include <qtooltip.h>
-#include <qdragobject.h>
+#include <tqtooltip.h>
+#include <tqdragobject.h>
#include <kconfig.h>
#include <kdesktopfile.h>
@@ -47,11 +47,11 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// this is one of the two constructors. gets called when creating a new button
// e.g. via the "non-KDE Application" dialog, not one that was saved and then
// restored.
-NonKDEAppButton::NonKDEAppButton(const QString& name,
- const QString& description,
- const QString& filePath, const QString& icon,
- const QString &cmdLine, bool inTerm,
- QWidget* parent)
+NonKDEAppButton::NonKDEAppButton(const TQString& name,
+ const TQString& description,
+ const TQString& filePath, const TQString& icon,
+ const TQString &cmdLine, bool inTerm,
+ TQWidget* parent)
: PanelButton(parent, "NonKDEAppButton") // call our superclass's constructor
{
// call the initialization method
@@ -61,11 +61,11 @@ NonKDEAppButton::NonKDEAppButton(const QString& name,
// to the slotExec() slot
// we do this here instead of in initialize(...) since initialize(...) may
// get called later, e.g after reconfiguring it
- connect(this, SIGNAL(clicked()), SLOT(slotExec()));
+ connect(this, TQT_SIGNAL(clicked()), TQT_SLOT(slotExec()));
}
// this constructor is used when restoring a button, usually at startup
-NonKDEAppButton::NonKDEAppButton( const KConfigGroup& config, QWidget* parent )
+NonKDEAppButton::NonKDEAppButton( const KConfigGroup& config, TQWidget* parent )
: PanelButton(parent, "NonKDEAppButton") // call our superclass's constructor
{
// call the initialization method, this time with values from a config file
@@ -77,13 +77,13 @@ NonKDEAppButton::NonKDEAppButton( const KConfigGroup& config, QWidget* parent )
config.readBoolEntry("RunInTerminal"));
// see comment on connect in above constructor
- connect(this, SIGNAL(clicked()), SLOT(slotExec()));
+ connect(this, TQT_SIGNAL(clicked()), TQT_SLOT(slotExec()));
}
-void NonKDEAppButton::initialize(const QString& name,
- const QString& description,
- const QString& filePath, const QString& icon,
- const QString &cmdLine, bool inTerm )
+void NonKDEAppButton::initialize(const TQString& name,
+ const TQString& description,
+ const TQString& filePath, const TQString& icon,
+ const TQString &cmdLine, bool inTerm )
{
// and now we actually set up most of the member variables with the
// values passed in here. by doing this all in an initialize() method
@@ -98,8 +98,8 @@ void NonKDEAppButton::initialize(const QString& name,
// now we set the buttons tooltip, title and icon using the appropriate
// set*() methods from the PanelButton class from which we subclass
- // assign the name or the description to a QString called tooltip
- QString tooltip = description.isEmpty() ? nameStr : descStr;
+ // assign the name or the description to a TQString called tooltip
+ TQString tooltip = description.isEmpty() ? nameStr : descStr;
if (tooltip.isEmpty())
{
@@ -123,7 +123,7 @@ void NonKDEAppButton::initialize(const QString& name,
}
// set the tooltip
- QToolTip::add(this, tooltip);
+ TQToolTip::add(this, tooltip);
// set the icon
setIcon(iconStr);
@@ -142,7 +142,7 @@ void NonKDEAppButton::saveConfig( KConfigGroup& config ) const
config.writePathEntry("CommandLine", cmdStr);
}
-void NonKDEAppButton::dragEnterEvent(QDragEnterEvent *ev)
+void NonKDEAppButton::dragEnterEvent(TQDragEnterEvent *ev)
{
// when something is dragged onto this button, we'll accept it
// if we aren't dragged onto ourselves, and if it's a URL
@@ -159,11 +159,11 @@ void NonKDEAppButton::dragEnterEvent(QDragEnterEvent *ev)
PanelButton::dragEnterEvent(ev);
}
-void NonKDEAppButton::dropEvent(QDropEvent *ev)
+void NonKDEAppButton::dropEvent(TQDropEvent *ev)
{
// something has been droped on us!
KURL::List fileList;
- QString execStr;
+ TQString execStr;
if (KURLDrag::decode(ev, fileList))
{
// according to KURLDrag, we've successfully retrieved
@@ -205,7 +205,7 @@ void NonKDEAppButton::slotExec()
runCommand();
}
-void NonKDEAppButton::runCommand(const QString& execStr)
+void NonKDEAppButton::runCommand(const TQString& execStr)
{
// run our command! this method is used both by the drag 'n drop
// facilities as well as when the button is activated (usualy w/a click)
@@ -225,7 +225,7 @@ void NonKDEAppButton::runCommand(const QString& execStr)
// get merged into the application config automagically for us
KConfig *config = KGlobal::config();
config->setGroup("misc");
- QString termStr = config->readPathEntry("Terminal", "konsole");
+ TQString termStr = config->readPathEntry("Terminal", "konsole");
// and now we run the darn thing and store how we fared in result
result = KRun::runCommand(termStr + " -e " + pathStr + " " +
@@ -269,7 +269,7 @@ void NonKDEAppButton::properties()
{
// the user has requested to configure this button
// this method gets called by the ButtonContainer that houses the button
- // see ButtonContainer::eventFilter(QObject *o, QEvent *e), where the
+ // see ButtonContainer::eventFilter(TQObject *o, TQEvent *e), where the
// context menu is created and dealt with.
// so we create a new config dialog ....
@@ -278,8 +278,8 @@ void NonKDEAppButton::properties()
// ... connect the signal it emits when it has data for us to save
// to our updateSettings slot (see above) ...
- connect(dlg, SIGNAL(updateSettings(PanelExeDialog*)), this,
- SLOT(updateSettings(PanelExeDialog*)));
+ connect(dlg, TQT_SIGNAL(updateSettings(PanelExeDialog*)), this,
+ TQT_SLOT(updateSettings(PanelExeDialog*)));
// ... and then show it to the user
dlg->show();
diff --git a/kicker/kicker/buttons/nonkdeappbutton.h b/kicker/kicker/buttons/nonkdeappbutton.h
index bbb74c892..217f2c22c 100644
--- a/kicker/kicker/buttons/nonkdeappbutton.h
+++ b/kicker/kicker/buttons/nonkdeappbutton.h
@@ -42,12 +42,12 @@ class NonKDEAppButton : public PanelButton
public:
// define our two constructors, one used for creating new buttons...
- NonKDEAppButton(const QString& name, const QString& description,
- const QString& filePath, const QString& icon,
- const QString& cmdLine, bool inTerm, QWidget* parent);
+ NonKDEAppButton(const TQString& name, const TQString& description,
+ const TQString& filePath, const TQString& icon,
+ const TQString& cmdLine, bool inTerm, TQWidget* parent);
// ... and once for restoring them at start up
- NonKDEAppButton(const KConfigGroup& config, QWidget* parent);
+ NonKDEAppButton(const KConfigGroup& config, TQWidget* parent);
// reimplemented from PanelButton
virtual void saveConfig(KConfigGroup& config) const;
@@ -63,29 +63,29 @@ protected slots:
protected:
// used to set up our internal state, either when creating the button
// or after reconfiguration
- void initialize(const QString& name, const QString& description,
- const QString& filePath, const QString& icon,
- const QString& cmdLine, bool inTerm);
+ void initialize(const TQString& name, const TQString& description,
+ const TQString& filePath, const TQString& icon,
+ const TQString& cmdLine, bool inTerm);
// run the command!
// the execStr parameter, which default to an empty string,
// is used to provide additional command line options aside
// from the ones in our config file; for instance a URL drag'd onto us
- void runCommand(const QString& execStr = QString::null);
+ void runCommand(const TQString& execStr = TQString::null);
// reimplemented from PanelButton
- virtual QString tileName() { return "URL"; }
- QString defaultIcon() const { return "exec"; };
+ virtual TQString tileName() { return "URL"; }
+ TQString defaultIcon() const { return "exec"; };
// handle drag and drop actions
- virtual void dropEvent(QDropEvent *ev);
- virtual void dragEnterEvent(QDragEnterEvent *ev);
-
- QString nameStr; // the name given this button by the user
- QString descStr; // the description given this button by the user
- QString pathStr; // the path to the command
- QString iconStr; // the path to the icon for this button
- QString cmdStr; // command line flags, if any
+ virtual void dropEvent(TQDropEvent *ev);
+ virtual void dragEnterEvent(TQDragEnterEvent *ev);
+
+ TQString nameStr; // the name given this button by the user
+ TQString descStr; // the description given this button by the user
+ TQString pathStr; // the path to the command
+ TQString iconStr; // the path to the icon for this button
+ TQString cmdStr; // command line flags, if any
bool term; // whether to run this in a terminal or not
}; // all done defining the class!
diff --git a/kicker/kicker/buttons/servicebutton.cpp b/kicker/kicker/buttons/servicebutton.cpp
index a5ec7c9a2..f7322a976 100644
--- a/kicker/kicker/buttons/servicebutton.cpp
+++ b/kicker/kicker/buttons/servicebutton.cpp
@@ -21,8 +21,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
******************************************************************/
-#include <qdragobject.h>
-#include <qtooltip.h>
+#include <tqdragobject.h>
+#include <tqtooltip.h>
#include <kdesktopfile.h>
#include <klocale.h>
@@ -39,7 +39,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "servicebutton.h"
#include "servicebutton.moc"
-ServiceButton::ServiceButton(const QString& desktopFile, QWidget* parent)
+ServiceButton::ServiceButton(const TQString& desktopFile, TQWidget* parent)
: PanelButton(parent, "ServiceButton"),
_service(0)
{
@@ -47,25 +47,25 @@ ServiceButton::ServiceButton(const QString& desktopFile, QWidget* parent)
initialize();
}
-ServiceButton::ServiceButton(const KService::Ptr &service, QWidget* parent)
+ServiceButton::ServiceButton(const KService::Ptr &service, TQWidget* parent)
: PanelButton(parent, "ServiceButton"),
_service(service),
_id(service->storageId())
{
if (_id.startsWith("/"))
{
- QString tmp = KGlobal::dirs()->relativeLocation("appdata", _id);
+ TQString tmp = KGlobal::dirs()->relativeLocation("appdata", _id);
if (!tmp.startsWith("/"))
_id = ":"+tmp;
}
initialize();
}
-ServiceButton::ServiceButton( const KConfigGroup& config, QWidget* parent )
+ServiceButton::ServiceButton( const KConfigGroup& config, TQWidget* parent )
: PanelButton(parent, "ServiceButton"),
_service(0)
{
- QString id;
+ TQString id;
if (config.hasKey("StorageId"))
id = config.readPathEntry("StorageId");
else
@@ -78,7 +78,7 @@ ServiceButton::~ServiceButton()
{
}
-void ServiceButton::loadServiceFromId(const QString &id)
+void ServiceButton::loadServiceFromId(const TQString &id)
{
_id = id;
/* this is a KService::Ptr
@@ -112,7 +112,7 @@ void ServiceButton::loadServiceFromId(const QString &id)
if (_id.startsWith("/"))
{
- QString tmp = KGlobal::dirs()->relativeLocation("appdata", _id);
+ TQString tmp = KGlobal::dirs()->relativeLocation("appdata", _id);
if (!tmp.startsWith("/"))
_id = ":"+tmp;
}
@@ -121,7 +121,7 @@ void ServiceButton::loadServiceFromId(const QString &id)
void ServiceButton::initialize()
{
readDesktopFile();
- connect(this, SIGNAL(clicked()), SLOT(slotExec()));
+ connect(this, TQT_SIGNAL(clicked()), TQT_SLOT(slotExec()));
}
void ServiceButton::readDesktopFile()
@@ -134,15 +134,15 @@ void ServiceButton::readDesktopFile()
if (!_service->genericName().isEmpty())
{
- QToolTip::add(this, _service->genericName());
+ TQToolTip::add(this, _service->genericName());
}
else if (_service->comment().isEmpty())
{
- QToolTip::add(this, _service->name());
+ TQToolTip::add(this, _service->name());
}
else
{
- QToolTip::add(this, _service->name() + " - " + _service->comment());
+ TQToolTip::add(this, _service->name() + " - " + _service->comment());
}
setTitle( _service->name() );
@@ -156,7 +156,7 @@ void ServiceButton::saveConfig( KConfigGroup& config ) const
config.writePathEntry("DesktopFile", _service->desktopEntryPath());
}
-void ServiceButton::dragEnterEvent(QDragEnterEvent *ev)
+void ServiceButton::dragEnterEvent(TQDragEnterEvent *ev)
{
if ((ev->source() != this) && KURLDrag::canDecode(ev))
ev->accept(rect());
@@ -165,7 +165,7 @@ void ServiceButton::dragEnterEvent(QDragEnterEvent *ev)
PanelButton::dragEnterEvent(ev);
}
-void ServiceButton::dropEvent( QDropEvent* ev )
+void ServiceButton::dropEvent( TQDropEvent* ev )
{
KURL::List uriList;
if( KURLDrag::decode( ev, uriList ) && _service ) {
@@ -177,7 +177,7 @@ void ServiceButton::dropEvent( QDropEvent* ev )
void ServiceButton::startDrag()
{
- QString path = _service->desktopEntryPath();
+ TQString path = _service->desktopEntryPath();
// If the path to the desktop file is relative, try to get the full
// path from KStdDirs.
@@ -192,7 +192,7 @@ void ServiceButton::slotExec()
{
// this allows the button to return to a non-pressed state
// before launching
- QTimer::singleShot(0, this, SLOT(performExec()));
+ TQTimer::singleShot(0, this, TQT_SLOT(performExec()));
}
void ServiceButton::performExec()
@@ -211,7 +211,7 @@ void ServiceButton::properties()
return;
}
- QString path = _service->desktopEntryPath();
+ TQString path = _service->desktopEntryPath();
// If the path to the desktop file is relative, try to get the full
// path from KStdDirs.
@@ -223,10 +223,10 @@ void ServiceButton::properties()
KPropertiesDialog* dialog = new KPropertiesDialog(serviceURL, 0, 0,
false, false);
dialog->setFileNameReadOnly(true);
- connect(dialog, SIGNAL(saveAs(const KURL &, KURL &)),
- this, SLOT(slotSaveAs(const KURL &, KURL &)));
- connect(dialog, SIGNAL(propertiesClosed()),
- this, SLOT(slotUpdate()));
+ connect(dialog, TQT_SIGNAL(saveAs(const KURL &, KURL &)),
+ this, TQT_SLOT(slotSaveAs(const KURL &, KURL &)));
+ connect(dialog, TQT_SIGNAL(propertiesClosed()),
+ this, TQT_SLOT(slotUpdate()));
dialog->show();
}
@@ -239,10 +239,10 @@ void ServiceButton::slotUpdate()
void ServiceButton::slotSaveAs(const KURL &oldUrl, KURL &newUrl)
{
- QString oldPath = oldUrl.path();
+ TQString oldPath = oldUrl.path();
if (locateLocal("appdata", oldUrl.fileName()) != oldPath)
{
- QString path = KickerLib::newDesktopFile(oldUrl);
+ TQString path = KickerLib::newDesktopFile(oldUrl);
newUrl.setPath(path);
_id = path;
}
@@ -250,7 +250,7 @@ void ServiceButton::slotSaveAs(const KURL &oldUrl, KURL &newUrl)
bool ServiceButton::checkForBackingFile()
{
- QString id = _id;
+ TQString id = _id;
loadServiceFromId(_id);
// we need to reset the _id back to whatever it was
diff --git a/kicker/kicker/buttons/servicebutton.h b/kicker/kicker/buttons/servicebutton.h
index 26f32791a..2d881d72c 100644
--- a/kicker/kicker/buttons/servicebutton.h
+++ b/kicker/kicker/buttons/servicebutton.h
@@ -33,9 +33,9 @@ class ServiceButton : public PanelButton
Q_OBJECT
public:
- ServiceButton( const QString& desktopFile, QWidget* parent );
- ServiceButton( const KService::Ptr& service, QWidget* parent );
- ServiceButton( const KConfigGroup& config, QWidget* parent );
+ ServiceButton( const TQString& desktopFile, TQWidget* parent );
+ ServiceButton( const KService::Ptr& service, TQWidget* parent );
+ ServiceButton( const KConfigGroup& config, TQWidget* parent );
~ServiceButton();
@@ -50,17 +50,17 @@ protected slots:
protected:
void initialize();
- void loadServiceFromId(const QString &id);
+ void loadServiceFromId(const TQString &id);
void readDesktopFile();
- virtual QString tileName() { return "URL"; }
+ virtual TQString tileName() { return "URL"; }
virtual void startDrag();
- virtual void dropEvent(QDropEvent *);
- virtual void dragEnterEvent(QDragEnterEvent *);
- QString defaultIcon() const { return "exec"; };
+ virtual void dropEvent(TQDropEvent *);
+ virtual void dragEnterEvent(TQDragEnterEvent *);
+ TQString defaultIcon() const { return "exec"; };
bool checkForBackingFile();
KService::Ptr _service;
- QString _id;
+ TQString _id;
};
#endif
diff --git a/kicker/kicker/buttons/servicemenubutton.cpp b/kicker/kicker/buttons/servicemenubutton.cpp
index e3fc41185..7a036e796 100644
--- a/kicker/kicker/buttons/servicemenubutton.cpp
+++ b/kicker/kicker/buttons/servicemenubutton.cpp
@@ -21,7 +21,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
******************************************************************/
-#include <qtooltip.h>
+#include <tqtooltip.h>
#include <kconfig.h>
#include <kservicegroup.h>
@@ -32,21 +32,21 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "servicemenubutton.h"
#include "servicemenubutton.moc"
-ServiceMenuButton::ServiceMenuButton( const QString& relPath, QWidget* parent )
+ServiceMenuButton::ServiceMenuButton( const TQString& relPath, TQWidget* parent )
: PanelPopupButton( parent, "ServiceMenuButton" )
, topMenu( 0 )
{
initialize( relPath );
}
-ServiceMenuButton::ServiceMenuButton( const KConfigGroup& config, QWidget* parent )
+ServiceMenuButton::ServiceMenuButton( const KConfigGroup& config, TQWidget* parent )
: PanelPopupButton( parent, "ServiceMenuButton" )
, topMenu( 0 )
{
initialize( config.readPathEntry("RelPath") );
}
-void ServiceMenuButton::initialize( const QString& relPath )
+void ServiceMenuButton::initialize( const TQString& relPath )
{
KServiceGroup::Ptr group = KServiceGroup::group( relPath );
@@ -56,13 +56,13 @@ void ServiceMenuButton::initialize( const QString& relPath )
return;
}
- QString caption = group->caption();
+ TQString caption = group->caption();
if (caption.isEmpty())
{
caption = i18n("Applications");
}
- QString comment = group->comment();
+ TQString comment = group->comment();
if (comment.isEmpty())
{
comment = caption;
@@ -70,7 +70,7 @@ void ServiceMenuButton::initialize( const QString& relPath )
topMenu = new PanelServiceMenu(caption, relPath);
setPopup(topMenu);
- QToolTip::add(this, comment);
+ TQToolTip::add(this, comment);
setTitle(caption);
setIcon(group->icon());
}
diff --git a/kicker/kicker/buttons/servicemenubutton.h b/kicker/kicker/buttons/servicemenubutton.h
index 1bd9d1885..0bd05b8ee 100644
--- a/kicker/kicker/buttons/servicemenubutton.h
+++ b/kicker/kicker/buttons/servicemenubutton.h
@@ -36,15 +36,15 @@ class ServiceMenuButton : public PanelPopupButton
Q_OBJECT
public:
- ServiceMenuButton( const QString& relPath, QWidget* parent );
- ServiceMenuButton( const KConfigGroup& config, QWidget* parent );
+ ServiceMenuButton( const TQString& relPath, TQWidget* parent );
+ ServiceMenuButton( const KConfigGroup& config, TQWidget* parent );
void saveConfig( KConfigGroup& config ) const;
protected:
- void initialize( const QString& relPath );
- virtual QString tileName() { return "Browser"; }
- virtual QString defaultIcon() const { return "folder"; }
+ void initialize( const TQString& relPath );
+ virtual TQString tileName() { return "Browser"; }
+ virtual TQString defaultIcon() const { return "folder"; }
virtual void startDrag();
virtual void initPopup();
diff --git a/kicker/kicker/buttons/urlbutton.cpp b/kicker/kicker/buttons/urlbutton.cpp
index 007b0cc00..a61b5d775 100644
--- a/kicker/kicker/buttons/urlbutton.cpp
+++ b/kicker/kicker/buttons/urlbutton.cpp
@@ -21,8 +21,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
******************************************************************/
-#include <qtooltip.h>
-#include <qfile.h>
+#include <tqtooltip.h>
+#include <tqfile.h>
#include <kdesktopfile.h>
#include <kfileitem.h>
@@ -44,7 +44,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "urlbutton.h"
#include "urlbutton.moc"
-URLButton::URLButton( const QString& url, QWidget* parent )
+URLButton::URLButton( const TQString& url, TQWidget* parent )
: PanelButton( parent, "URLButton" )
, fileItem( 0 )
, pDlg( 0 )
@@ -52,7 +52,7 @@ URLButton::URLButton( const QString& url, QWidget* parent )
initialize( url );
}
-URLButton::URLButton( const KConfigGroup& config, QWidget* parent )
+URLButton::URLButton( const KConfigGroup& config, TQWidget* parent )
: PanelButton( parent, "URLButton" )
, fileItem( 0 )
, pDlg( 0 )
@@ -65,12 +65,12 @@ URLButton::~URLButton()
delete fileItem;
}
-void URLButton::initialize( const QString& _url )
+void URLButton::initialize( const TQString& _url )
{
KURL url(_url);
if (!url.isLocalFile() || !url.path().endsWith(".desktop"))
{
- QString file = KickerLib::newDesktopFile(url);
+ TQString file = KickerLib::newDesktopFile(url);
KDesktopFile df(file);
df.writeEntry("Encoding", "UTF-8");
df.writeEntry("Type","Link");
@@ -90,7 +90,7 @@ void URLButton::initialize( const QString& _url )
}
fileItem = new KFileItem( KFileItem::Unknown, KFileItem::Unknown, url );
setIcon( fileItem->iconName() );
- connect( this, SIGNAL(clicked()), SLOT(slotExec()) );
+ connect( this, TQT_SIGNAL(clicked()), TQT_SLOT(slotExec()) );
setToolTip();
if (url.isLocalFile())
@@ -113,23 +113,23 @@ void URLButton::setToolTip()
if (df.readComment().isEmpty())
{
- QToolTip::add(this, df.readName());
+ TQToolTip::add(this, df.readName());
}
else
{
- QToolTip::add(this, df.readName() + " - " + df.readComment());
+ TQToolTip::add(this, df.readName() + " - " + df.readComment());
}
setTitle(df.readName());
}
else
{
- QToolTip::add(this, fileItem->url().prettyURL());
+ TQToolTip::add(this, fileItem->url().prettyURL());
setTitle(fileItem->url().prettyURL());
}
}
-void URLButton::dragEnterEvent(QDragEnterEvent *ev)
+void URLButton::dragEnterEvent(TQDragEnterEvent *ev)
{
if ((ev->source() != this) && fileItem->acceptsDrops() && KURLDrag::canDecode(ev))
ev->accept(rect());
@@ -138,7 +138,7 @@ void URLButton::dragEnterEvent(QDragEnterEvent *ev)
PanelButton::dragEnterEvent(ev);
}
-void URLButton::dropEvent(QDropEvent *ev)
+void URLButton::dropEvent(TQDropEvent *ev)
{
kapp->propagateSessionManager();
KURL::List execList;
@@ -186,7 +186,7 @@ void URLButton::updateURL()
void URLButton::properties()
{
- if ( (fileItem->isLocalFile() && !QFile::exists(fileItem->url().path()) )
+ if ( (fileItem->isLocalFile() && !TQFile::exists(fileItem->url().path()) )
|| !fileItem->url().isValid())
{
KMessageBox::error( 0L, i18n("The file %1 does not exist")
@@ -196,6 +196,6 @@ void URLButton::properties()
pDlg = new KPropertiesDialog(fileItem, 0L, 0L, false, false); // will delete itself
pDlg->setFileNameReadOnly(true);
- connect(pDlg, SIGNAL(applied()), SLOT(updateURL()));
+ connect(pDlg, TQT_SIGNAL(applied()), TQT_SLOT(updateURL()));
pDlg->show();
}
diff --git a/kicker/kicker/buttons/urlbutton.h b/kicker/kicker/buttons/urlbutton.h
index e6f6b12e0..c2cbd2a19 100644
--- a/kicker/kicker/buttons/urlbutton.h
+++ b/kicker/kicker/buttons/urlbutton.h
@@ -37,8 +37,8 @@ class URLButton : public PanelButton
Q_OBJECT
public:
- URLButton( const QString& url, QWidget* parent );
- URLButton( const KConfigGroup& config, QWidget* parent );
+ URLButton( const TQString& url, TQWidget* parent );
+ URLButton( const KConfigGroup& config, TQWidget* parent );
virtual ~URLButton();
@@ -51,11 +51,11 @@ protected slots:
void updateURL();
protected:
- void initialize( const QString& url );
- virtual QString tileName() { return "URL"; }
+ void initialize( const TQString& url );
+ virtual TQString tileName() { return "URL"; }
virtual void startDrag();
- virtual void dropEvent(QDropEvent *);
- virtual void dragEnterEvent(QDragEnterEvent *);
+ virtual void dropEvent(TQDropEvent *);
+ virtual void dragEnterEvent(TQDragEnterEvent *);
void setToolTip();
KFileItem *fileItem;
diff --git a/kicker/kicker/buttons/windowlistbutton.cpp b/kicker/kicker/buttons/windowlistbutton.cpp
index 8a60ca5e8..0b413d880 100644
--- a/kicker/kicker/buttons/windowlistbutton.cpp
+++ b/kicker/kicker/buttons/windowlistbutton.cpp
@@ -21,7 +21,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
******************************************************************/
-#include <qtooltip.h>
+#include <tqtooltip.h>
#include <kwindowlistmenu.h>
#include <klocale.h>
@@ -29,7 +29,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "windowlistbutton.h"
#include "windowlistbutton.moc"
-WindowListButton::WindowListButton( QWidget* parent )
+WindowListButton::WindowListButton( TQWidget* parent )
: PanelPopupButton( parent, "WindowListButton" )
, topMenu( 0 )
{
@@ -37,7 +37,7 @@ WindowListButton::WindowListButton( QWidget* parent )
setPopup(topMenu);
setTitle(i18n("Window List"));
- QToolTip::add(this, i18n("Window list"));
+ TQToolTip::add(this, i18n("Window list"));
setIcon("window_list");
}
diff --git a/kicker/kicker/buttons/windowlistbutton.h b/kicker/kicker/buttons/windowlistbutton.h
index 23dc26c19..d8b57c62e 100644
--- a/kicker/kicker/buttons/windowlistbutton.h
+++ b/kicker/kicker/buttons/windowlistbutton.h
@@ -36,10 +36,10 @@ class WindowListButton : public PanelPopupButton
Q_OBJECT
public:
- WindowListButton( QWidget* parent );
+ WindowListButton( TQWidget* parent );
protected:
- virtual QString tileName() { return "WindowList"; }
+ virtual TQString tileName() { return "WindowList"; }
virtual void initPopup();
KWindowListMenu* topMenu;