summaryrefslogtreecommitdiffstats
path: root/kicker/kicker
diff options
context:
space:
mode:
Diffstat (limited to 'kicker/kicker')
-rw-r--r--kicker/kicker/buttons/bookmarksbutton.h2
-rw-r--r--kicker/kicker/buttons/browserbutton.cpp2
-rw-r--r--kicker/kicker/buttons/browserbutton.h2
-rw-r--r--kicker/kicker/buttons/desktopbutton.cpp4
-rw-r--r--kicker/kicker/buttons/desktopbutton.h2
-rw-r--r--kicker/kicker/buttons/extensionbutton.h2
-rw-r--r--kicker/kicker/buttons/kbutton.h2
-rw-r--r--kicker/kicker/buttons/knewbutton.cpp8
-rw-r--r--kicker/kicker/buttons/knewbutton.h2
-rw-r--r--kicker/kicker/buttons/nontdeappbutton.cpp8
-rw-r--r--kicker/kicker/buttons/nontdeappbutton.h4
-rw-r--r--kicker/kicker/buttons/servicebutton.cpp12
-rw-r--r--kicker/kicker/buttons/servicebutton.h2
-rw-r--r--kicker/kicker/buttons/servicemenubutton.h2
-rw-r--r--kicker/kicker/buttons/urlbutton.cpp4
-rw-r--r--kicker/kicker/buttons/urlbutton.h2
-rw-r--r--kicker/kicker/buttons/windowlistbutton.h2
-rw-r--r--kicker/kicker/core/applethandle.cpp40
-rw-r--r--kicker/kicker/core/applethandle.h6
-rw-r--r--kicker/kicker/core/container_applet.cpp32
-rw-r--r--kicker/kicker/core/container_applet.h2
-rw-r--r--kicker/kicker/core/container_base.cpp4
-rw-r--r--kicker/kicker/core/container_base.h2
-rw-r--r--kicker/kicker/core/container_button.cpp28
-rw-r--r--kicker/kicker/core/container_button.h2
-rw-r--r--kicker/kicker/core/container_extension.cpp112
-rw-r--r--kicker/kicker/core/container_extension.h4
-rw-r--r--kicker/kicker/core/containerarea.cpp122
-rw-r--r--kicker/kicker/core/containerarea.h4
-rw-r--r--kicker/kicker/core/containerarealayout.cpp76
-rw-r--r--kicker/kicker/core/containerarealayout.h6
-rw-r--r--kicker/kicker/core/extensionmanager.cpp8
-rw-r--r--kicker/kicker/core/extensionmanager.h2
-rw-r--r--kicker/kicker/core/kicker.cpp22
-rw-r--r--kicker/kicker/core/kicker.h2
-rw-r--r--kicker/kicker/core/kickerbindings.cpp6
-rw-r--r--kicker/kicker/core/menumanager.cpp6
-rw-r--r--kicker/kicker/core/menumanager.h2
-rw-r--r--kicker/kicker/core/panelextension.cpp26
-rw-r--r--kicker/kicker/core/panelextension.h4
-rw-r--r--kicker/kicker/core/pluginmanager.cpp20
-rw-r--r--kicker/kicker/core/pluginmanager.h4
-rw-r--r--kicker/kicker/core/showdesktop.cpp28
-rw-r--r--kicker/kicker/core/showdesktop.h2
-rw-r--r--kicker/kicker/core/unhidetrigger.cpp2
-rw-r--r--kicker/kicker/core/unhidetrigger.h4
-rw-r--r--kicker/kicker/core/userrectsel.cpp4
-rw-r--r--kicker/kicker/core/userrectsel.h2
-rw-r--r--kicker/kicker/core/usersizesel.cpp6
-rw-r--r--kicker/kicker/core/usersizesel.h2
-rw-r--r--kicker/kicker/interfaces/kickoff-search-plugin.h2
-rw-r--r--kicker/kicker/interfaces/kickoffsearchinterface.h2
-rw-r--r--kicker/kicker/ui/CMakeLists.txt3
-rw-r--r--kicker/kicker/ui/addapplet.cpp50
-rw-r--r--kicker/kicker/ui/addapplet.h2
-rw-r--r--kicker/kicker/ui/addapplet_mnu.cpp4
-rw-r--r--kicker/kicker/ui/addapplet_mnu.h2
-rw-r--r--kicker/kicker/ui/addappletvisualfeedback.cpp14
-rw-r--r--kicker/kicker/ui/addappletvisualfeedback.h2
-rw-r--r--kicker/kicker/ui/addbutton_mnu.h2
-rw-r--r--kicker/kicker/ui/addextension_mnu.cpp4
-rw-r--r--kicker/kicker/ui/addextension_mnu.h2
-rw-r--r--kicker/kicker/ui/appletop_mnu.cpp8
-rw-r--r--kicker/kicker/ui/appletop_mnu.h2
-rw-r--r--kicker/kicker/ui/appletview.ui4
-rw-r--r--kicker/kicker/ui/appletwidget.h2
-rw-r--r--kicker/kicker/ui/browser_dlg.cpp4
-rw-r--r--kicker/kicker/ui/browser_dlg.h2
-rw-r--r--kicker/kicker/ui/browser_mnu.cpp24
-rw-r--r--kicker/kicker/ui/browser_mnu.h2
-rw-r--r--kicker/kicker/ui/clicklineedit.h2
-rw-r--r--kicker/kicker/ui/client_mnu.cpp4
-rw-r--r--kicker/kicker/ui/client_mnu.h2
-rw-r--r--kicker/kicker/ui/exe_dlg.cpp16
-rw-r--r--kicker/kicker/ui/exe_dlg.h2
-rw-r--r--kicker/kicker/ui/flipscrollview.cpp30
-rw-r--r--kicker/kicker/ui/flipscrollview.h4
-rw-r--r--kicker/kicker/ui/hidebutton.cpp26
-rw-r--r--kicker/kicker/ui/hidebutton.h6
-rw-r--r--kicker/kicker/ui/itemview.cpp28
-rw-r--r--kicker/kicker/ui/itemview.h2
-rw-r--r--kicker/kicker/ui/k_mnu.cpp92
-rw-r--r--kicker/kicker/ui/k_mnu.h3
-rw-r--r--kicker/kicker/ui/k_new_mnu.cpp285
-rw-r--r--kicker/kicker/ui/k_new_mnu.h17
-rw-r--r--kicker/kicker/ui/kickoff_bar.cpp4
-rw-r--r--kicker/kicker/ui/kickoff_bar.h2
-rw-r--r--kicker/kicker/ui/media_watcher.h2
-rw-r--r--kicker/kicker/ui/mykickoffsearchinterface.h2
-rw-r--r--kicker/kicker/ui/popupmenutitle.h2
-rw-r--r--kicker/kicker/ui/quickbrowser_mnu.h2
-rw-r--r--kicker/kicker/ui/removeapplet_mnu.cpp6
-rw-r--r--kicker/kicker/ui/removeapplet_mnu.h2
-rw-r--r--kicker/kicker/ui/removebutton_mnu.cpp6
-rw-r--r--kicker/kicker/ui/removebutton_mnu.h2
-rw-r--r--kicker/kicker/ui/removecontainer_mnu.cpp2
-rw-r--r--kicker/kicker/ui/removecontainer_mnu.h2
-rw-r--r--kicker/kicker/ui/removeextension_mnu.cpp4
-rw-r--r--kicker/kicker/ui/removeextension_mnu.h2
-rw-r--r--kicker/kicker/ui/service_mnu.cpp28
-rw-r--r--kicker/kicker/ui/service_mnu.h2
101 files changed, 618 insertions, 762 deletions
diff --git a/kicker/kicker/buttons/bookmarksbutton.h b/kicker/kicker/buttons/bookmarksbutton.h
index bb6d450e1..18d03214c 100644
--- a/kicker/kicker/buttons/bookmarksbutton.h
+++ b/kicker/kicker/buttons/bookmarksbutton.h
@@ -36,7 +36,7 @@ class KBookmarkOwner;
*/
class BookmarksButton : public PanelPopupButton
{
- Q_OBJECT
+ TQ_OBJECT
public:
BookmarksButton(TQWidget* parent);
diff --git a/kicker/kicker/buttons/browserbutton.cpp b/kicker/kicker/buttons/browserbutton.cpp
index 71f2d0504..7ab5de6de 100644
--- a/kicker/kicker/buttons/browserbutton.cpp
+++ b/kicker/kicker/buttons/browserbutton.cpp
@@ -66,7 +66,7 @@ void BrowserButton::initialize( const TQString& icon, const TQString& path )
setPopup(topMenu);
_menuTimer = new TQTimer( this, "_menuTimer" );
- connect( _menuTimer, TQT_SIGNAL(timeout()), TQT_SLOT(slotDelayedPopup()) );
+ connect( _menuTimer, TQ_SIGNAL(timeout()), TQ_SLOT(slotDelayedPopup()) );
TQToolTip::add(this, i18n("Browse: %1").arg(path));
setTitle( path );
diff --git a/kicker/kicker/buttons/browserbutton.h b/kicker/kicker/buttons/browserbutton.h
index 507a764ed..627368472 100644
--- a/kicker/kicker/buttons/browserbutton.h
+++ b/kicker/kicker/buttons/browserbutton.h
@@ -33,7 +33,7 @@ class PanelBrowserMenu;
*/
class BrowserButton : public PanelPopupButton
{
- Q_OBJECT
+ TQ_OBJECT
public:
BrowserButton( const TQString& icon, const TQString& startDir, TQWidget* parent );
diff --git a/kicker/kicker/buttons/desktopbutton.cpp b/kicker/kicker/buttons/desktopbutton.cpp
index fe70954f9..b548579f6 100644
--- a/kicker/kicker/buttons/desktopbutton.cpp
+++ b/kicker/kicker/buttons/desktopbutton.cpp
@@ -45,8 +45,8 @@ DesktopButton::DesktopButton( TQWidget* parent )
setTitle(i18n("Desktop Access"));
setIcon("desktop");
- connect( this, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(showDesktop(bool)) );
- connect( ShowDesktop::the(), TQT_SIGNAL(desktopShown(bool)), this, TQT_SLOT(toggle(bool)) );
+ connect( this, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(showDesktop(bool)) );
+ connect( ShowDesktop::the(), TQ_SIGNAL(desktopShown(bool)), this, TQ_SLOT(toggle(bool)) );
setOn( ShowDesktop::the()->desktopShowing() );
}
diff --git a/kicker/kicker/buttons/desktopbutton.h b/kicker/kicker/buttons/desktopbutton.h
index c896bdf92..3ea98a49e 100644
--- a/kicker/kicker/buttons/desktopbutton.h
+++ b/kicker/kicker/buttons/desktopbutton.h
@@ -31,7 +31,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
class DesktopButton : public PanelButton
{
- Q_OBJECT
+ TQ_OBJECT
public:
DesktopButton( TQWidget* parent );
diff --git a/kicker/kicker/buttons/extensionbutton.h b/kicker/kicker/buttons/extensionbutton.h
index 2d2d2d1f2..3c9932655 100644
--- a/kicker/kicker/buttons/extensionbutton.h
+++ b/kicker/kicker/buttons/extensionbutton.h
@@ -31,7 +31,7 @@ class KPanelMenu;
class ExtensionButton : public PanelPopupButton
{
- Q_OBJECT
+ TQ_OBJECT
public:
ExtensionButton( const TQString& desktopFile, TQWidget* parent );
diff --git a/kicker/kicker/buttons/kbutton.h b/kicker/kicker/buttons/kbutton.h
index 896bf56c2..fd34e5104 100644
--- a/kicker/kicker/buttons/kbutton.h
+++ b/kicker/kicker/buttons/kbutton.h
@@ -31,7 +31,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
class KButton : public PanelPopupButton
{
- Q_OBJECT
+ TQ_OBJECT
public:
KButton( TQWidget *parent );
diff --git a/kicker/kicker/buttons/knewbutton.cpp b/kicker/kicker/buttons/knewbutton.cpp
index ee5fa9c1f..ee3a942e5 100644
--- a/kicker/kicker/buttons/knewbutton.cpp
+++ b/kicker/kicker/buttons/knewbutton.cpp
@@ -100,7 +100,7 @@ void KNewButton::show()
KButton::show();
if (KickerSettings::firstRun()) {
- TQTimer::singleShot(0,this,TQT_SLOT(slotExecMenu()));
+ TQTimer::singleShot(0,this,TQ_SLOT(slotExecMenu()));
KickerSettings::setFirstRun(false);
KickerSettings::writeConfig();
}
@@ -112,11 +112,11 @@ bool KNewButton::eventFilter(TQObject *o, TQEvent *e)
e->type() == TQEvent::MouseButtonPress ||
e->type() == TQEvent::MouseButtonDblClick )
{
- TQMouseEvent *me = TQT_TQMOUSEEVENT(e);
- if (TQT_TQRECT_OBJECT(rect()).contains(mapFromGlobal(me->globalPos())))
+ TQMouseEvent *me = static_cast<TQMouseEvent*>(e);
+ if (rect().contains(mapFromGlobal(me->globalPos())))
{
if (m_pressedDuringPopup && m_popup && m_openTimer != -1
- && (me->button() & Qt::LeftButton) )
+ && (me->button() & TQt::LeftButton) )
return true;
}
}
diff --git a/kicker/kicker/buttons/knewbutton.h b/kicker/kicker/buttons/knewbutton.h
index 1bdbbafbd..d38df07c6 100644
--- a/kicker/kicker/buttons/knewbutton.h
+++ b/kicker/kicker/buttons/knewbutton.h
@@ -35,7 +35,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
class KNewButton : public KButton
{
- Q_OBJECT
+ TQ_OBJECT
public:
KNewButton( TQWidget *parent );
diff --git a/kicker/kicker/buttons/nontdeappbutton.cpp b/kicker/kicker/buttons/nontdeappbutton.cpp
index 4f88f2d37..972944897 100644
--- a/kicker/kicker/buttons/nontdeappbutton.cpp
+++ b/kicker/kicker/buttons/nontdeappbutton.cpp
@@ -61,7 +61,7 @@ NonKDEAppButton::NonKDEAppButton(const TQString& 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, TQT_SIGNAL(clicked()), TQT_SLOT(slotExec()));
+ connect(this, TQ_SIGNAL(clicked()), TQ_SLOT(slotExec()));
}
// this constructor is used when restoring a button, usually at startup
@@ -77,7 +77,7 @@ NonKDEAppButton::NonKDEAppButton( const TDEConfigGroup& config, TQWidget* parent
config.readBoolEntry("RunInTerminal"));
// see comment on connect in above constructor
- connect(this, TQT_SIGNAL(clicked()), TQT_SLOT(slotExec()));
+ connect(this, TQ_SIGNAL(clicked()), TQ_SLOT(slotExec()));
}
void NonKDEAppButton::initialize(const TQString& name,
@@ -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, TQT_SIGNAL(updateSettings(PanelExeDialog*)), this,
- TQT_SLOT(updateSettings(PanelExeDialog*)));
+ connect(dlg, TQ_SIGNAL(updateSettings(PanelExeDialog*)), this,
+ TQ_SLOT(updateSettings(PanelExeDialog*)));
// ... and then show it to the user
dlg->show();
diff --git a/kicker/kicker/buttons/nontdeappbutton.h b/kicker/kicker/buttons/nontdeappbutton.h
index 94c7cb59d..eac6ce412 100644
--- a/kicker/kicker/buttons/nontdeappbutton.h
+++ b/kicker/kicker/buttons/nontdeappbutton.h
@@ -37,8 +37,8 @@ class PanelExeDialog;
*/
class NonKDEAppButton : public PanelButton
{
- // the Q_OBJECT macro provides the magic glue for signals 'n slots
- Q_OBJECT
+ // the TQ_OBJECT macro provides the magic glue for signals 'n slots
+ TQ_OBJECT
public:
// define our two constructors, one used for creating new buttons...
diff --git a/kicker/kicker/buttons/servicebutton.cpp b/kicker/kicker/buttons/servicebutton.cpp
index 716a750ed..9b368407e 100644
--- a/kicker/kicker/buttons/servicebutton.cpp
+++ b/kicker/kicker/buttons/servicebutton.cpp
@@ -121,7 +121,7 @@ void ServiceButton::loadServiceFromId(const TQString &id)
void ServiceButton::initialize()
{
readDesktopFile();
- connect(this, TQT_SIGNAL(clicked()), TQT_SLOT(slotExec()));
+ connect(this, TQ_SIGNAL(clicked()), TQ_SLOT(slotExec()));
}
void ServiceButton::readDesktopFile()
@@ -192,7 +192,7 @@ void ServiceButton::slotExec()
{
// this allows the button to return to a non-pressed state
// before launching
- TQTimer::singleShot(0, this, TQT_SLOT(performExec()));
+ TQTimer::singleShot(0, this, TQ_SLOT(performExec()));
}
void ServiceButton::performExec()
@@ -223,10 +223,10 @@ void ServiceButton::properties()
KPropertiesDialog* dialog = new KPropertiesDialog(serviceURL, 0, 0,
false, false);
dialog->setFileNameReadOnly(true);
- connect(dialog, TQT_SIGNAL(saveAs(const KURL &, KURL &)),
- this, TQT_SLOT(slotSaveAs(const KURL &, KURL &)));
- connect(dialog, TQT_SIGNAL(propertiesClosed()),
- this, TQT_SLOT(slotUpdate()));
+ connect(dialog, TQ_SIGNAL(saveAs(const KURL &, KURL &)),
+ this, TQ_SLOT(slotSaveAs(const KURL &, KURL &)));
+ connect(dialog, TQ_SIGNAL(propertiesClosed()),
+ this, TQ_SLOT(slotUpdate()));
dialog->show();
}
diff --git a/kicker/kicker/buttons/servicebutton.h b/kicker/kicker/buttons/servicebutton.h
index ac551adb5..a2d7939e8 100644
--- a/kicker/kicker/buttons/servicebutton.h
+++ b/kicker/kicker/buttons/servicebutton.h
@@ -30,7 +30,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
class ServiceButton : public PanelButton
{
- Q_OBJECT
+ TQ_OBJECT
public:
ServiceButton( const TQString& desktopFile, TQWidget* parent );
diff --git a/kicker/kicker/buttons/servicemenubutton.h b/kicker/kicker/buttons/servicemenubutton.h
index da512105d..bef038859 100644
--- a/kicker/kicker/buttons/servicemenubutton.h
+++ b/kicker/kicker/buttons/servicemenubutton.h
@@ -33,7 +33,7 @@ class PanelServiceMenu;
*/
class ServiceMenuButton : public PanelPopupButton
{
- Q_OBJECT
+ TQ_OBJECT
public:
ServiceMenuButton( const TQString& relPath, TQWidget* parent );
diff --git a/kicker/kicker/buttons/urlbutton.cpp b/kicker/kicker/buttons/urlbutton.cpp
index 13ff95323..d398b07b0 100644
--- a/kicker/kicker/buttons/urlbutton.cpp
+++ b/kicker/kicker/buttons/urlbutton.cpp
@@ -90,7 +90,7 @@ void URLButton::initialize( const TQString& _url )
}
fileItem = new KFileItem( KFileItem::Unknown, KFileItem::Unknown, url );
setIcon( fileItem->iconName() );
- connect( this, TQT_SIGNAL(clicked()), TQT_SLOT(slotExec()) );
+ connect( this, TQ_SIGNAL(clicked()), TQ_SLOT(slotExec()) );
setToolTip();
if (url.isLocalFile())
@@ -196,6 +196,6 @@ void URLButton::properties()
pDlg = new KPropertiesDialog(fileItem, 0L, 0L, false, false); // will delete itself
pDlg->setFileNameReadOnly(true);
- connect(pDlg, TQT_SIGNAL(applied()), TQT_SLOT(updateURL()));
+ connect(pDlg, TQ_SIGNAL(applied()), TQ_SLOT(updateURL()));
pDlg->show();
}
diff --git a/kicker/kicker/buttons/urlbutton.h b/kicker/kicker/buttons/urlbutton.h
index ba4a1b43d..dd55d78b4 100644
--- a/kicker/kicker/buttons/urlbutton.h
+++ b/kicker/kicker/buttons/urlbutton.h
@@ -34,7 +34,7 @@ class KPropertiesDialog;
*/
class URLButton : public PanelButton
{
- Q_OBJECT
+ TQ_OBJECT
public:
URLButton( const TQString& url, TQWidget* parent );
diff --git a/kicker/kicker/buttons/windowlistbutton.h b/kicker/kicker/buttons/windowlistbutton.h
index d8b57c62e..d9b67fb67 100644
--- a/kicker/kicker/buttons/windowlistbutton.h
+++ b/kicker/kicker/buttons/windowlistbutton.h
@@ -33,7 +33,7 @@ class KWindowListMenu;
*/
class WindowListButton : public PanelPopupButton
{
- Q_OBJECT
+ TQ_OBJECT
public:
WindowListButton( TQWidget* parent );
diff --git a/kicker/kicker/core/applethandle.cpp b/kicker/kicker/core/applethandle.cpp
index 1806fedbb..c8f87b02e 100644
--- a/kicker/kicker/core/applethandle.cpp
+++ b/kicker/kicker/core/applethandle.cpp
@@ -64,8 +64,8 @@ AppletHandle::AppletHandle(AppletContainer* parent)
m_menuButton->installEventFilter(this);
m_layout->addWidget(m_menuButton);
- connect(m_menuButton, TQT_SIGNAL(pressed()),
- this, TQT_SLOT(menuButtonPressed()));
+ connect(m_menuButton, TQ_SIGNAL(pressed()),
+ this, TQ_SLOT(menuButtonPressed()));
TQToolTip::add(m_menuButton, i18n("%1 menu").arg(parent->info().name()));
}
@@ -89,7 +89,7 @@ int AppletHandle::widthForHeight( int /* h */ ) const
void AppletHandle::setPopupDirection(KPanelApplet::Direction d)
{
- Qt::ArrowType a = Qt::UpArrow;
+ TQt::ArrowType a = TQt::UpArrow;
if (d == m_popupDirection || !m_menuButton)
{
@@ -102,19 +102,19 @@ void AppletHandle::setPopupDirection(KPanelApplet::Direction d)
{
case KPanelApplet::Up:
m_layout->setDirection(TQBoxLayout::BottomToTop);
- a = Qt::UpArrow;
+ a = TQt::UpArrow;
break;
case KPanelApplet::Down:
m_layout->setDirection(TQBoxLayout::TopToBottom);
- a = Qt::DownArrow;
+ a = TQt::DownArrow;
break;
case KPanelApplet::Left:
m_layout->setDirection(TQBoxLayout::RightToLeft);
- a = Qt::LeftArrow;
+ a = TQt::LeftArrow;
break;
case KPanelApplet::Right:
m_layout->setDirection(TQBoxLayout::LeftToRight);
- a = Qt::RightArrow;
+ a = TQt::RightArrow;
break;
}
@@ -151,8 +151,8 @@ void AppletHandle::setFadeOutHandle(bool fadeOut)
if (!m_handleHoverTimer)
{
m_handleHoverTimer = new TQTimer(this, "m_handleHoverTimer");
- connect(m_handleHoverTimer, TQT_SIGNAL(timeout()),
- this, TQT_SLOT(checkHandleHover()));
+ connect(m_handleHoverTimer, TQ_SIGNAL(timeout()),
+ this, TQ_SLOT(checkHandleHover()));
m_applet->installEventFilter(this);
}
}
@@ -200,7 +200,7 @@ bool AppletHandle::eventFilter(TQObject *o, TQEvent *e)
// a hack for applets that have out-of-process
// elements (e.g the systray) so that the handle
// doesn't flicker when moving over those elements
- if (TQT_TQRECT_OBJECT(w->rect()).contains(w->mapFromGlobal(TQCursor::pos())))
+ if (w->rect().contains(w->mapFromGlobal(TQCursor::pos())))
{
nowDrawIt = true;
}
@@ -220,12 +220,12 @@ bool AppletHandle::eventFilter(TQObject *o, TQEvent *e)
return TQWidget::eventFilter( o, e );
}
- else if (TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(m_dragBar))
+ else if (o == m_dragBar)
{
if (e->type() == TQEvent::MouseButtonPress)
{
- TQMouseEvent* ev = TQT_TQMOUSEEVENT(e);
- if (ev->button() == Qt::LeftButton || ev->button() == Qt::MidButton)
+ TQMouseEvent* ev = static_cast<TQMouseEvent*>(e);
+ if (ev->button() == TQt::LeftButton || ev->button() == TQt::MidButton)
{
emit moveApplet(m_applet->mapFromGlobal(ev->globalPos()));
}
@@ -234,8 +234,8 @@ bool AppletHandle::eventFilter(TQObject *o, TQEvent *e)
if (m_menuButton && e->type() == TQEvent::MouseButtonPress)
{
- TQMouseEvent* ev = TQT_TQMOUSEEVENT(e);
- if (ev->button() == Qt::RightButton)
+ TQMouseEvent* ev = static_cast<TQMouseEvent*>(e);
+ if (ev->button() == TQt::RightButton)
{
if (!m_menuButton->isDown())
{
@@ -312,7 +312,7 @@ TQSize AppletHandleDrag::minimumSizeHint() const
{
int wh = style().pixelMetric(TQStyle::PM_DockWindowHandleExtent, this);
- if (m_parent->orientation() == Qt::Horizontal)
+ if (m_parent->orientation() == TQt::Horizontal)
{
return TQSize(wh, 0);
}
@@ -322,7 +322,7 @@ TQSize AppletHandleDrag::minimumSizeHint() const
TQSizePolicy AppletHandleDrag::sizePolicy() const
{
- if (m_parent->orientation() == Qt::Horizontal)
+ if (m_parent->orientation() == TQt::Horizontal)
{
return TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Preferred );
}
@@ -360,14 +360,14 @@ void AppletHandleDrag::paintEvent(TQPaintEvent *)
TQStyle::SFlags flags = TQStyle::Style_Default;
flags |= TQStyle::Style_Enabled;
- if (m_parent->orientation() == Qt::Horizontal)
+ if (m_parent->orientation() == TQt::Horizontal)
{
flags |= TQStyle::Style_Horizontal;
}
TQRect r = rect();
- style().tqdrawPrimitive(TQStyle::PE_DockWindowHandle, &p, r,
+ style().drawPrimitive(TQStyle::PE_DockWindowHandle, &p, r,
colorGroup(), flags);
}
else
@@ -387,7 +387,7 @@ TQSize AppletHandleButton::minimumSizeHint() const
int height = style().pixelMetric(TQStyle::PM_DockWindowHandleExtent, this);
int width = height;
- if (m_parent->orientation() == Qt::Horizontal)
+ if (m_parent->orientation() == TQt::Horizontal)
{
return TQSize(width, height);
}
diff --git a/kicker/kicker/core/applethandle.h b/kicker/kicker/core/applethandle.h
index 34e8e3576..578bc1dc3 100644
--- a/kicker/kicker/core/applethandle.h
+++ b/kicker/kicker/core/applethandle.h
@@ -37,7 +37,7 @@ class AppletHandleButton;
class AppletHandle : public TQWidget
{
- Q_OBJECT
+ TQ_OBJECT
public:
AppletHandle(AppletContainer* parent);
@@ -87,7 +87,7 @@ class AppletHandle : public TQWidget
class AppletHandleDrag : public TQWidget
{
- Q_OBJECT
+ TQ_OBJECT
public:
AppletHandleDrag(AppletHandle* parent);
@@ -109,7 +109,7 @@ class AppletHandleDrag : public TQWidget
class AppletHandleButton : public SimpleArrowButton
{
- Q_OBJECT
+ TQ_OBJECT
public:
AppletHandleButton(AppletHandle *parent);
diff --git a/kicker/kicker/core/container_applet.cpp b/kicker/kicker/core/container_applet.cpp
index d710a1ade..e53e831ba 100644
--- a/kicker/kicker/core/container_applet.cpp
+++ b/kicker/kicker/core/container_applet.cpp
@@ -79,7 +79,7 @@ AppletContainer::AppletContainer(const AppletInfo& info,
_appletframe->setFrameStyle(TQFrame::NoFrame);
_appletframe->installEventFilter(this);
- if (orientation() == Qt::Horizontal)
+ if (orientation() == TQt::Horizontal)
{
_layout = new TQBoxLayout(this, TQBoxLayout::LeftToRight, 0, 0);
}
@@ -92,10 +92,10 @@ AppletContainer::AppletContainer(const AppletInfo& info,
_layout->addSpacing(APPLET_MARGIN);
_handle = new AppletHandle(this);
- _layout->addWidget(TQT_TQWIDGET(_handle), 0);
- connect(_handle, TQT_SIGNAL(moveApplet(const TQPoint&)),
- this, TQT_SLOT(moveApplet(const TQPoint&)));
- connect(_handle, TQT_SIGNAL(showAppletMenu()), this, TQT_SLOT(showAppletMenu()));
+ _layout->addWidget(_handle, 0);
+ connect(_handle, TQ_SIGNAL(moveApplet(const TQPoint&)),
+ this, TQ_SLOT(moveApplet(const TQPoint&)));
+ connect(_handle, TQ_SIGNAL(showAppletMenu()), this, TQ_SLOT(showAppletMenu()));
_layout->addWidget(_appletframe, 1);
_layout->activate();
@@ -124,12 +124,12 @@ AppletContainer::AppletContainer(const AppletInfo& info,
setImmutable(immutable);
- connect(_applet, TQT_SIGNAL(updateLayout()), TQT_SLOT(slotUpdateLayout()));
- connect(_applet, TQT_SIGNAL(requestFocus()), TQT_SLOT(activateWindow()));
- connect(_applet, TQT_SIGNAL(requestFocus(bool)), TQT_SLOT(focusRequested(bool)));
+ connect(_applet, TQ_SIGNAL(updateLayout()), TQ_SLOT(slotUpdateLayout()));
+ connect(_applet, TQ_SIGNAL(requestFocus()), TQ_SLOT(activateWindow()));
+ connect(_applet, TQ_SIGNAL(requestFocus(bool)), TQ_SLOT(focusRequested(bool)));
- connect(Kicker::the(), TQT_SIGNAL(configurationChanged()),
- this, TQT_SLOT(slotReconfigure()));
+ connect(Kicker::the(), TQ_SIGNAL(configurationChanged()),
+ this, TQ_SLOT(slotReconfigure()));
}
void AppletContainer::configure()
@@ -191,7 +191,7 @@ void AppletContainer::resetLayout()
{
_handle->resetLayout();
- if (orientation() == Qt::Horizontal)
+ if (orientation() == TQt::Horizontal)
{
_layout->setDirection( TQBoxLayout::LeftToRight );
}
@@ -225,7 +225,7 @@ void AppletContainer::showAppletMenu()
Kicker::the()->setInsertionPoint(_handle->mapToGlobal(_handle->rect().center()));
- switch(menu->exec(KickerLib::popupPosition(popupDirection(), menu, TQT_TQWIDGET(_handle))))
+ switch(menu->exec(KickerLib::popupPosition(popupDirection(), menu, _handle)))
{
case PanelAppletOpMenu::Move:
moveApplet(_handle->mapToParent(_handle->rect().center()));
@@ -298,7 +298,7 @@ void AppletContainer::doSaveConfiguration( TDEConfigGroup& config,
bool layoutOnly ) const
{
// immutability is checked by ContainerBase
- if (orientation() == Qt::Horizontal)
+ if (orientation() == TQt::Horizontal)
{
config.writeEntry( "WidthForHeightHint", widthForHeight(height()) );
}
@@ -321,8 +321,8 @@ TQPopupMenu* AppletContainer::createOpMenu()
_info.name(), _info.icon(),
this);
- connect(opMenu, TQT_SIGNAL(escapePressed()),
- _handle, TQT_SLOT(toggleMenuButtonOff()));
+ connect(opMenu, TQ_SIGNAL(escapePressed()),
+ _handle, TQ_SLOT(toggleMenuButtonOff()));
return opMenu;
}
@@ -471,7 +471,7 @@ void AppletContainer::setImmutable(bool immutable)
}
else if (!_handle->isVisibleTo(this))
{
- TQToolTip::add(TQT_TQWIDGET(_handle), _info.name());
+ TQToolTip::add(_handle, _info.name());
_handle->show();
setBackground();
}
diff --git a/kicker/kicker/core/container_applet.h b/kicker/kicker/core/container_applet.h
index 458f18fe0..d5b80930e 100644
--- a/kicker/kicker/core/container_applet.h
+++ b/kicker/kicker/core/container_applet.h
@@ -40,7 +40,7 @@ class AppletHandle;
class AppletContainer : public BaseContainer
{
- Q_OBJECT
+ TQ_OBJECT
public:
AppletContainer(const AppletInfo& info, TQPopupMenu* opMenu, bool isImmutable = false, TQWidget* parent = 0);
diff --git a/kicker/kicker/core/container_base.cpp b/kicker/kicker/core/container_base.cpp
index e3131b2ed..64886f436 100644
--- a/kicker/kicker/core/container_base.cpp
+++ b/kicker/kicker/core/container_base.cpp
@@ -37,7 +37,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
BaseContainer::BaseContainer( TQPopupMenu* appletOpMenu, TQWidget* parent, const char * name )
: TQWidget( parent, name )
, _dir(KPanelApplet::Up)
- , _orient(Qt::Horizontal)
+ , _orient(TQt::Horizontal)
, _alignment(KPanelExtension::LeftTop)
, _fspace(0)
, _moveOffset(TQPoint(0,0))
@@ -47,7 +47,7 @@ BaseContainer::BaseContainer( TQPopupMenu* appletOpMenu, TQWidget* parent, const
, _opMnu(0)
, _appletOpMnu(appletOpMenu)
{
- setCursor(tqarrowCursor);
+ setCursor(TQt::arrowCursor);
}
BaseContainer::~BaseContainer()
diff --git a/kicker/kicker/core/container_base.h b/kicker/kicker/core/container_base.h
index 88e06e715..6cf61bec6 100644
--- a/kicker/kicker/core/container_base.h
+++ b/kicker/kicker/core/container_base.h
@@ -36,7 +36,7 @@ class TQPopupMenu;
class BaseContainer : public TQWidget
{
- Q_OBJECT
+ TQ_OBJECT
public:
typedef TQValueList<BaseContainer*> List;
diff --git a/kicker/kicker/core/container_button.cpp b/kicker/kicker/core/container_button.cpp
index 40f479308..d3a550a07 100644
--- a/kicker/kicker/core/container_button.cpp
+++ b/kicker/kicker/core/container_button.cpp
@@ -161,13 +161,13 @@ void ButtonContainer::embedButton(PanelButton* b)
}
_layout = vbox;
- connect(_button, TQT_SIGNAL(requestSave()), TQT_SIGNAL(requestSave()));
- connect(_button, TQT_SIGNAL(hideme(bool)), TQT_SLOT(hideRequested(bool)));
- connect(_button, TQT_SIGNAL(removeme()), TQT_SLOT(removeRequested()));
- connect(_button, TQT_SIGNAL(dragme(const TQPixmap)),
- TQT_SLOT(dragButton(const TQPixmap)));
- connect(_button, TQT_SIGNAL(dragme(const KURL::List, const TQPixmap)),
- TQT_SLOT(dragButton(const KURL::List, const TQPixmap)));
+ connect(_button, TQ_SIGNAL(requestSave()), TQ_SIGNAL(requestSave()));
+ connect(_button, TQ_SIGNAL(hideme(bool)), TQ_SLOT(hideRequested(bool)));
+ connect(_button, TQ_SIGNAL(removeme()), TQ_SLOT(removeRequested()));
+ connect(_button, TQ_SIGNAL(dragme(const TQPixmap)),
+ TQ_SLOT(dragButton(const TQPixmap)));
+ connect(_button, TQ_SIGNAL(dragme(const KURL::List, const TQPixmap)),
+ TQ_SLOT(dragButton(const KURL::List, const TQPixmap)));
}
TQPopupMenu* ButtonContainer::createOpMenu()
@@ -225,7 +225,7 @@ void ButtonContainer::dragButton(const TQPixmap icon)
bool ButtonContainer::eventFilter(TQObject *o, TQEvent *e)
{
- if (TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(_button) && e->type() == TQEvent::MouseButtonPress)
+ if (o == _button && e->type() == TQEvent::MouseButtonPress)
{
static bool sentinal = false;
@@ -235,10 +235,10 @@ bool ButtonContainer::eventFilter(TQObject *o, TQEvent *e)
}
sentinal = true;
- TQMouseEvent* me = TQT_TQMOUSEEVENT(e);
+ TQMouseEvent* me = static_cast<TQMouseEvent*>(e);
switch (me->button())
{
- case Qt::MidButton:
+ case TQt::MidButton:
{
if (isImmutable())
{
@@ -252,7 +252,7 @@ bool ButtonContainer::eventFilter(TQObject *o, TQEvent *e)
return true;
}
- case Qt::RightButton:
+ case TQt::RightButton:
{
if (!kapp->authorizeTDEAction("kicker_rmb") ||
isImmutable())
@@ -261,9 +261,9 @@ bool ButtonContainer::eventFilter(TQObject *o, TQEvent *e)
}
TQPopupMenu* menu = opMenu();
- connect( menu, TQT_SIGNAL( aboutToHide() ), this, TQT_SLOT( slotMenuClosed() ) );
- TQPoint pos = KickerLib::popupPosition(popupDirection(), menu, TQT_TQWIDGET(this),
- (orientation() == Qt::Horizontal) ?
+ connect( menu, TQ_SIGNAL( aboutToHide() ), this, TQ_SLOT( slotMenuClosed() ) );
+ TQPoint pos = KickerLib::popupPosition(popupDirection(), menu, this,
+ (orientation() == TQt::Horizontal) ?
TQPoint(0, 0) : me->pos());
Kicker::the()->setInsertionPoint(me->globalPos());
diff --git a/kicker/kicker/core/container_button.h b/kicker/kicker/core/container_button.h
index 1e48989c1..d564354b0 100644
--- a/kicker/kicker/core/container_button.h
+++ b/kicker/kicker/core/container_button.h
@@ -36,7 +36,7 @@ class TDEConfigGroup;
class ButtonContainer : public BaseContainer
{
- Q_OBJECT
+ TQ_OBJECT
public:
ButtonContainer(TQPopupMenu* opMenu, TQWidget* parent = 0);
diff --git a/kicker/kicker/core/container_extension.cpp b/kicker/kicker/core/container_extension.cpp
index 721df418e..afb786f7f 100644
--- a/kicker/kicker/core/container_extension.cpp
+++ b/kicker/kicker/core/container_extension.cpp
@@ -137,20 +137,20 @@ void ExtensionContainer::init()
KWin::setState(winId(), NET::Sticky);
KWin::setOnAllDesktops(winId(), true);
- connect(Kicker::the()->twinModule(), TQT_SIGNAL(strutChanged()), this, TQT_SLOT(strutChanged()));
- connect(Kicker::the()->twinModule(), TQT_SIGNAL(currentDesktopChanged(int)),
- this, TQT_SLOT( currentDesktopChanged(int)));
+ connect(Kicker::the()->twinModule(), TQ_SIGNAL(strutChanged()), this, TQ_SLOT(strutChanged()));
+ connect(Kicker::the()->twinModule(), TQ_SIGNAL(currentDesktopChanged(int)),
+ this, TQ_SLOT( currentDesktopChanged(int)));
setBackgroundOrigin(AncestorOrigin);
setFrameStyle(NoFrame);
setLineWidth(0);
setMargin(0);
- connect(UnhideTrigger::the(), TQT_SIGNAL(triggerUnhide(UnhideTrigger::Trigger,int)),
- this, TQT_SLOT(unhideTriggered(UnhideTrigger::Trigger,int)));
+ connect(UnhideTrigger::the(), TQ_SIGNAL(triggerUnhide(UnhideTrigger::Trigger,int)),
+ this, TQ_SLOT(unhideTriggered(UnhideTrigger::Trigger,int)));
- _popupWidgetFilter = new PopupWidgetFilter( TQT_TQOBJECT(this) );
- connect(_popupWidgetFilter, TQT_SIGNAL(popupWidgetHiding()), TQT_SLOT(maybeStartAutoHideTimer()));
+ _popupWidgetFilter = new PopupWidgetFilter( this );
+ connect(_popupWidgetFilter, TQ_SIGNAL(popupWidgetHiding()), TQ_SLOT(maybeStartAutoHideTimer()));
// layout
_layout = new TQGridLayout(this, 3, 3, 0, 0);
@@ -160,15 +160,15 @@ void ExtensionContainer::init()
// instantiate the autohide timer
_autohideTimer = new TQTimer(this, "_autohideTimer");
- connect(_autohideTimer, TQT_SIGNAL(timeout()), TQT_SLOT(autoHideTimeout()));
+ connect(_autohideTimer, TQ_SIGNAL(timeout()), TQ_SLOT(autoHideTimeout()));
// instantiate the updateLayout event compressor timer
_updateLayoutTimer = new TQTimer(this, "_updateLayoutTimer");
- connect(_updateLayoutTimer, TQT_SIGNAL(timeout()), TQT_SLOT(actuallyUpdateLayout()));
+ connect(_updateLayoutTimer, TQ_SIGNAL(timeout()), TQ_SLOT(actuallyUpdateLayout()));
installEventFilter(this); // for mouse event handling
- connect(Kicker::the(), TQT_SIGNAL(tdedisplayPaletteChanged()), this, TQT_SLOT(updateHighlightColor()));
+ connect(Kicker::the(), TQ_SIGNAL(tdedisplayPaletteChanged()), this, TQ_SLOT(updateHighlightColor()));
updateHighlightColor();
// if we were hidden when kicker quit, let's start out hidden as well!
@@ -207,9 +207,9 @@ void ExtensionContainer::init()
item->setDefaultValue(m_extension->customSize());
}
- connect(m_extension, TQT_SIGNAL(updateLayout()), TQT_SLOT(updateLayout()));
- connect(m_extension, TQT_SIGNAL(maintainFocus(bool)),
- TQT_SLOT(maintainFocus(bool)));
+ connect(m_extension, TQ_SIGNAL(updateLayout()), TQ_SLOT(updateLayout()));
+ connect(m_extension, TQ_SIGNAL(maintainFocus(bool)),
+ TQ_SLOT(maintainFocus(bool)));
_layout->addWidget(m_extension, 1, 1);
}
@@ -733,7 +733,7 @@ void ExtensionContainer::autoHideTimeout()
{
// kdDebug(1210) << "PanelContainer::autoHideTimeout() " << name() << endl;
// Hack: If there is a popup open, don't autohide until it closes.
- TQWidget* popup = TQT_TQWIDGET(TQApplication::activePopupWidget());
+ TQWidget* popup = TQApplication::activePopupWidget();
if (popup)
{
@@ -885,7 +885,7 @@ void ExtensionContainer::autoHide(bool hide)
_in_autohide = false;
- TQTimer::singleShot(100, this, TQT_SLOT(enableMouseOverEffects()));
+ TQTimer::singleShot(100, this, TQ_SLOT(enableMouseOverEffects()));
}
void ExtensionContainer::animatedHide(bool left)
@@ -925,7 +925,7 @@ void ExtensionContainer::animatedHide(bool left)
!TQApplication::desktop()->screenGeometry(s).intersects(geometry()))
{
blockUserInput(false);
- TQTimer::singleShot(100, this, TQT_SLOT(enableMouseOverEffects()));
+ TQTimer::singleShot(100, this, TQ_SLOT(enableMouseOverEffects()));
return;
}
}
@@ -988,7 +988,7 @@ void ExtensionContainer::animatedHide(bool left)
config->setGroup(extensionId());
config->writeEntry("UserHidden", userHidden());
- TQTimer::singleShot(100, this, TQT_SLOT(enableMouseOverEffects()));
+ TQTimer::singleShot(100, this, TQ_SLOT(enableMouseOverEffects()));
}
bool ExtensionContainer::reserveStrut() const
@@ -1208,7 +1208,7 @@ int ExtensionContainer::arrangeHideButtons()
_layout->setEnabled(false);
}
- if (orientation() == Qt::Vertical)
+ if (orientation() == TQt::Vertical)
{
int maxWidth = width();
@@ -1227,7 +1227,7 @@ int ExtensionContainer::arrangeHideButtons()
_ltHB->setMaximumWidth(maxWidth);
_ltHB->setMaximumHeight(14);
_layout->remove(_ltHB);
- _layout->addWidget(_ltHB, 0, 1, Qt::AlignBottom | Qt::AlignLeft);
+ _layout->addWidget(_ltHB, 0, 1, TQt::AlignBottom | TQt::AlignLeft);
}
if (_rbHB)
@@ -1252,8 +1252,8 @@ int ExtensionContainer::arrangeHideButtons()
maxHeight = maxHeight - (PANEL_RESIZE_HANDLE_WIDTH + PANEL_BOTTOM_SPACING_W_RESIZE_HANDLE);
}
- int vertAlignment = (position() == KPanelExtension::Top) ? Qt::AlignTop : 0;
- int leftAlignment = Qt::AlignRight;
+ int vertAlignment = (position() == KPanelExtension::Top) ? TQt::AlignTop : 0;
+ int leftAlignment = TQt::AlignRight;
if (_ltHB)
{
@@ -1262,11 +1262,11 @@ int ExtensionContainer::arrangeHideButtons()
_layout->remove(_ltHB);
if (kapp->reverseLayout())
{
- _layout->addWidget(_ltHB, 1, 2, (TQ_Alignment)vertAlignment);
+ _layout->addWidget(_ltHB, 1, 2, (TQt::AlignmentFlags)vertAlignment);
}
else
{
- _layout->addWidget(_ltHB, 1, 0, (TQ_Alignment)(leftAlignment | vertAlignment));
+ _layout->addWidget(_ltHB, 1, 0, (TQt::AlignmentFlags)(leftAlignment | vertAlignment));
}
}
@@ -1277,11 +1277,11 @@ int ExtensionContainer::arrangeHideButtons()
_layout->remove(_rbHB);
if (kapp->reverseLayout())
{
- _layout->addWidget(_rbHB, 1, 0, (TQ_Alignment)(leftAlignment | vertAlignment));
+ _layout->addWidget(_rbHB, 1, 0, (TQt::AlignmentFlags)(leftAlignment | vertAlignment));
}
else
{
- _layout->addWidget(_rbHB, 1, 2, (TQ_Alignment)vertAlignment);
+ _layout->addWidget(_rbHB, 1, 2, (TQt::AlignmentFlags)vertAlignment);
}
}
}
@@ -1315,7 +1315,7 @@ int ExtensionContainer::setupBorderSpace()
TQRect r = TQApplication::desktop()->screenGeometry(xineramaScreen());
TQRect h = geometry();
- if (orientation() == Qt::Vertical)
+ if (orientation() == TQt::Vertical)
{
if (h.top() > 0)
{
@@ -1417,26 +1417,26 @@ void ExtensionContainer::paintEvent(TQPaintEvent *e)
// KPanelExtension::Left/Right don't seem to draw the separators at all!
if (position() == KPanelExtension::Left) {
rect = TQRect(width()-2,0,PANEL_RESIZE_HANDLE_WIDTH,height());
- style().tqdrawPrimitive( TQStyle::PE_Separator, &p, rect, colorGroup(), TQStyle::Style_Horizontal );
+ style().drawPrimitive( TQStyle::PE_Separator, &p, rect, colorGroup(), TQStyle::Style_Horizontal );
}
else if (position() == KPanelExtension::Right) {
rect = TQRect(0,0,PANEL_RESIZE_HANDLE_WIDTH,height());
- style().tqdrawPrimitive( TQStyle::PE_Separator, &p, rect, colorGroup(), TQStyle::Style_Horizontal );
+ style().drawPrimitive( TQStyle::PE_Separator, &p, rect, colorGroup(), TQStyle::Style_Horizontal );
}
else if (position() == KPanelExtension::Top) {
// Nastiness to both vertically flip the PE_Separator
// and make sure it pops out of, not sinks into, the screen
TQPixmap inv_pm(width(),PANEL_RESIZE_HANDLE_WIDTH);
- TQPainter myp(TQT_TQPAINTDEVICE(&inv_pm));
+ TQPainter myp(&inv_pm);
rect = TQRect(0,0,width(),PANEL_RESIZE_HANDLE_WIDTH);
TQColorGroup darkcg = colorGroup();
darkcg.setColor(TQColorGroup::Light, colorGroup().dark());
- style().tqdrawPrimitive( TQStyle::PE_Separator, &myp, rect, darkcg, TQStyle::Style_Default );
+ style().drawPrimitive( TQStyle::PE_Separator, &myp, rect, darkcg, TQStyle::Style_Default );
p.drawPixmap(0,height()-2,inv_pm);
}
else {
rect = TQRect(0,0,width(),PANEL_RESIZE_HANDLE_WIDTH);
- style().tqdrawPrimitive( TQStyle::PE_Separator, &p, rect, colorGroup(), TQStyle::Style_Default );
+ style().drawPrimitive( TQStyle::PE_Separator, &p, rect, colorGroup(), TQStyle::Style_Default );
}
}
}
@@ -1486,7 +1486,7 @@ void ExtensionContainer::unhideIfHidden(int showForAtLeastHowManyMS)
{
autoHide(false);
TQTimer::singleShot(showForAtLeastHowManyMS,
- this, TQT_SLOT(maybeStartAutoHideTimer()));
+ this, TQ_SLOT(maybeStartAutoHideTimer()));
return;
}
@@ -1582,11 +1582,11 @@ KPanelExtension::Orientation ExtensionContainer::orientation() const
{
if (position() == KPanelExtension::Top || position() == KPanelExtension::Bottom)
{
- return Qt::Horizontal;
+ return TQt::Horizontal;
}
else
{
- return Qt::Vertical;
+ return TQt::Vertical;
}
}
@@ -1627,18 +1627,18 @@ void ExtensionContainer::resetLayout()
_ltHB = new HideButton(this);
_ltHB->installEventFilter(this);
_ltHB->setEnabled(true);
- connect(_ltHB, TQT_SIGNAL(clicked()), this, TQT_SLOT(hideLeft()));
+ connect(_ltHB, TQ_SIGNAL(clicked()), this, TQ_SLOT(hideLeft()));
haveToArrangeButtons = true;
}
- if (orientation() == Qt::Horizontal)
+ if (orientation() == TQt::Horizontal)
{
- _ltHB->setArrowType(Qt::LeftArrow);
+ _ltHB->setArrowType(TQt::LeftArrow);
_ltHB->setFixedSize(m_settings.hideButtonSize(), height());
}
else
{
- _ltHB->setArrowType(Qt::UpArrow);
+ _ltHB->setArrowType(TQt::UpArrow);
_ltHB->setFixedSize(width(), m_settings.hideButtonSize());
}
@@ -1658,18 +1658,18 @@ void ExtensionContainer::resetLayout()
_rbHB = new HideButton(this);
_rbHB->installEventFilter(this);
_rbHB->setEnabled(true);
- connect(_rbHB, TQT_SIGNAL(clicked()), this, TQT_SLOT(hideRight()));
+ connect(_rbHB, TQ_SIGNAL(clicked()), this, TQ_SLOT(hideRight()));
haveToArrangeButtons = true;
}
- if ( orientation() == Qt::Horizontal)
+ if ( orientation() == TQt::Horizontal)
{
- _rbHB->setArrowType(Qt::RightArrow);
+ _rbHB->setArrowType(TQt::RightArrow);
_rbHB->setFixedSize(m_settings.hideButtonSize(), height());
}
else
{
- _rbHB->setArrowType(Qt::DownArrow);
+ _rbHB->setArrowType(TQt::DownArrow);
_rbHB->setFixedSize(width(), m_settings.hideButtonSize());
}
@@ -1709,7 +1709,7 @@ void ExtensionContainer::resetLayout()
updateGeometry();
int endBorderWidth = haveToArrangeButtons ? arrangeHideButtons() : setupBorderSpace();
- if (orientation() == Qt::Horizontal)
+ if (orientation() == TQt::Horizontal)
{
if (m_extension)
{
@@ -2145,8 +2145,8 @@ bool ExtensionContainer::eventFilter( TQObject*, TQEvent * e)
{
case TQEvent::MouseButtonPress:
{
- TQMouseEvent* me = TQT_TQMOUSEEVENT(e);
- if ( me->button() == Qt::LeftButton )
+ TQMouseEvent* me = static_cast<TQMouseEvent*>(e);
+ if ( me->button() == TQt::LeftButton )
{
if (inResizeArea(me->pos()))
{
@@ -2170,7 +2170,7 @@ bool ExtensionContainer::eventFilter( TQObject*, TQEvent * e)
_is_lmb_down = true;
}
}
- else if (me->button() == Qt::RightButton)
+ else if (me->button() == TQt::RightButton)
{
showPanelMenu(me->globalPos());
return true; // don't crash!
@@ -2180,8 +2180,8 @@ bool ExtensionContainer::eventFilter( TQObject*, TQEvent * e)
case TQEvent::MouseButtonRelease:
{
- TQMouseEvent* me = TQT_TQMOUSEEVENT(e);
- if ( me->button() == Qt::LeftButton )
+ TQMouseEvent* me = static_cast<TQMouseEvent*>(e);
+ if ( me->button() == TQt::LeftButton )
{
_is_lmb_down = false;
}
@@ -2190,7 +2190,7 @@ bool ExtensionContainer::eventFilter( TQObject*, TQEvent * e)
case TQEvent::MouseMove:
{
- TQMouseEvent* me = TQT_TQMOUSEEVENT(e);
+ TQMouseEvent* me = static_cast<TQMouseEvent*>(e);
if (KickerSettings::useResizeHandle())
{
KPanelExtension::Position pos = position();
@@ -2202,7 +2202,7 @@ bool ExtensionContainer::eventFilter( TQObject*, TQEvent * e)
}
else
{
- setCursor(tqarrowCursor);
+ setCursor(TQt::arrowCursor);
}
}
else if (pos == KPanelExtension::Right)
@@ -2213,35 +2213,35 @@ bool ExtensionContainer::eventFilter( TQObject*, TQEvent * e)
}
else
{
- setCursor(tqarrowCursor);
+ setCursor(TQt::arrowCursor);
}
}
else if (pos == KPanelExtension::Top)
{
if (inResizeArea(me->pos()))
{
- setCursor(tqsizeVerCursor);
+ setCursor(TQt::sizeVerCursor);
}
else
{
- setCursor(tqarrowCursor);
+ setCursor(TQt::arrowCursor);
}
}
else
{
if (inResizeArea(me->pos()))
{
- setCursor(tqsizeVerCursor);
+ setCursor(TQt::sizeVerCursor);
}
else
{
- setCursor(tqarrowCursor);
+ setCursor(TQt::arrowCursor);
}
}
}
if (_is_lmb_down &&
- ((me->state() & Qt::LeftButton) == Qt::LeftButton) &&
+ ((me->state() & TQt::LeftButton) == TQt::LeftButton) &&
!Kicker::the()->isImmutable() &&
!m_settings.config()->isImmutable() &&
!ExtensionManager::the()->isMenuBar(this))
diff --git a/kicker/kicker/core/container_extension.h b/kicker/kicker/core/container_extension.h
index 8948341d1..b1db1efeb 100644
--- a/kicker/kicker/core/container_extension.h
+++ b/kicker/kicker/core/container_extension.h
@@ -51,7 +51,7 @@ class TQColor;
class ExtensionContainer : public TQFrame
{
- Q_OBJECT
+ TQ_OBJECT
public:
enum UserHidden { Unhidden, LeftTop, RightBottom };
@@ -203,7 +203,7 @@ private:
class PopupWidgetFilter : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
PopupWidgetFilter( TQObject *parent );
diff --git a/kicker/kicker/core/containerarea.cpp b/kicker/kicker/core/containerarea.cpp
index 5b1eb5c8c..234aba375 100644
--- a/kicker/kicker/core/containerarea.cpp
+++ b/kicker/kicker/core/containerarea.cpp
@@ -103,11 +103,11 @@ ContainerArea::ContainerArea(TDEConfig* _c,
setBackground();
- connect(&_autoScrollTimer, TQT_SIGNAL(timeout()), TQT_SLOT(autoScroll()));
- connect(kapp, TQT_SIGNAL(tdedisplayPaletteChanged()), TQT_SLOT(setBackground()));
- connect(Kicker::the(), TQT_SIGNAL(immutabilityChanged(bool)),
- TQT_SLOT(immutabilityChanged(bool)));
- connect(this, TQT_SIGNAL(contentsMoving(int, int)), TQT_SLOT(setBackground()));
+ connect(&_autoScrollTimer, TQ_SIGNAL(timeout()), TQ_SLOT(autoScroll()));
+ connect(kapp, TQ_SIGNAL(tdedisplayPaletteChanged()), TQ_SLOT(setBackground()));
+ connect(Kicker::the(), TQ_SIGNAL(immutabilityChanged(bool)),
+ TQ_SLOT(immutabilityChanged(bool)));
+ connect(this, TQ_SIGNAL(contentsMoving(int, int)), TQ_SLOT(setBackground()));
}
ContainerArea::~ContainerArea()
@@ -142,7 +142,7 @@ void ContainerArea::initialize(bool useDefaultConfig)
}
setAcceptDrops(!isImmutable());
- TQTimer::singleShot(0, this, TQT_SLOT(resizeContents()));
+ TQTimer::singleShot(0, this, TQ_SLOT(resizeContents()));
}
void ContainerArea::defaultContainerConfig()
@@ -153,7 +153,7 @@ void ContainerArea::defaultContainerConfig()
containers.append(new KMenuButtonContainer(m_opMenu, m_contents));
int dsize;
- if (orientation() == Qt::Horizontal)
+ if (orientation() == TQt::Horizontal)
{
dsize = width();
}
@@ -377,7 +377,7 @@ void ContainerArea::loadContainers(const TQStringList& containers)
// it gets executed too soon. we need to wait until the containers are
// actually resized, but we enter the event loop prior to that happening
// above.
- TQTimer::singleShot(0, this, TQT_SLOT(updateContainersBackground()));
+ TQTimer::singleShot(0, this, TQ_SLOT(updateContainersBackground()));
}
void ContainerArea::saveContainerConfig(bool layoutOnly)
@@ -728,20 +728,20 @@ void ContainerArea::addContainer(BaseContainer* a, bool arrange, int index)
m_layout->add(a);
}
- connect(a, TQT_SIGNAL(moveme(BaseContainer*)),
- TQT_SLOT(startContainerMove(BaseContainer*)));
- connect(a, TQT_SIGNAL(removeme(BaseContainer*)),
- TQT_SLOT(removeContainer(BaseContainer*)));
- connect(a, TQT_SIGNAL(takeme(BaseContainer*)),
- TQT_SLOT(takeContainer(BaseContainer*)));
- connect(a, TQT_SIGNAL(requestSave()),
- TQT_SLOT(slotSaveContainerConfig()));
- connect(a, TQT_SIGNAL(maintainFocus(bool)),
- this, TQT_SIGNAL(maintainFocus(bool)));
+ connect(a, TQ_SIGNAL(moveme(BaseContainer*)),
+ TQ_SLOT(startContainerMove(BaseContainer*)));
+ connect(a, TQ_SIGNAL(removeme(BaseContainer*)),
+ TQ_SLOT(removeContainer(BaseContainer*)));
+ connect(a, TQ_SIGNAL(takeme(BaseContainer*)),
+ TQ_SLOT(takeContainer(BaseContainer*)));
+ connect(a, TQ_SIGNAL(requestSave()),
+ TQ_SLOT(slotSaveContainerConfig()));
+ connect(a, TQ_SIGNAL(maintainFocus(bool)),
+ this, TQ_SIGNAL(maintainFocus(bool)));
if (dynamic_cast<AppletContainer*>(a))
{
- connect(a, TQT_SIGNAL(updateLayout()), TQT_SLOT(resizeContents()));
+ connect(a, TQ_SIGNAL(updateLayout()), TQ_SLOT(resizeContents()));
}
a->configure(orientation(), popupDirection());
@@ -824,16 +824,16 @@ void ContainerArea::takeContainer(BaseContainer* a)
return;
}
- disconnect(a, TQT_SIGNAL(moveme(BaseContainer*)),
- this, TQT_SLOT(startContainerMove(BaseContainer*)));
- disconnect(a, TQT_SIGNAL(removeme(BaseContainer*)),
- this, TQT_SLOT(removeContainer(BaseContainer*)));
- disconnect(a, TQT_SIGNAL(takeme(BaseContainer*)),
- this, TQT_SLOT(takeContainer(BaseContainer*)));
- disconnect(a, TQT_SIGNAL(requestSave()),
- this, TQT_SLOT(slotSaveContainerConfig()));
- disconnect(a, TQT_SIGNAL(maintainFocus(bool)),
- this, TQT_SIGNAL(maintainFocus(bool)));
+ disconnect(a, TQ_SIGNAL(moveme(BaseContainer*)),
+ this, TQ_SLOT(startContainerMove(BaseContainer*)));
+ disconnect(a, TQ_SIGNAL(removeme(BaseContainer*)),
+ this, TQ_SLOT(removeContainer(BaseContainer*)));
+ disconnect(a, TQ_SIGNAL(takeme(BaseContainer*)),
+ this, TQ_SLOT(takeContainer(BaseContainer*)));
+ disconnect(a, TQ_SIGNAL(requestSave()),
+ this, TQ_SLOT(slotSaveContainerConfig()));
+ disconnect(a, TQ_SIGNAL(maintainFocus(bool)),
+ this, TQ_SIGNAL(maintainFocus(bool)));
// Just remove the group from our own config file. Leave separate config
// files untouched.
@@ -850,7 +850,7 @@ void ContainerArea::resizeContents()
int w = width();
int h = height();
- if (orientation() == Qt::Horizontal)
+ if (orientation() == TQt::Horizontal)
{
int newWidth = m_layout->widthForHeight(h);
if (newWidth > w)
@@ -923,7 +923,7 @@ void ContainerArea::startContainerMove(BaseContainer *a)
KickerTip::enableTipping(false);
emit maintainFocus(true);
setMouseTracking(true);
- grabMouse(tqsizeAllCursor);
+ grabMouse(TQt::sizeAllCursor);
m_layout->setStretchEnabled(false);
a->raise();
@@ -940,7 +940,7 @@ void ContainerArea::mouseReleaseEvent(TQMouseEvent *)
// so we need to complete the move here
_autoScrollTimer.stop();
releaseMouse();
- setCursor(tqarrowCursor);
+ setCursor(TQt::arrowCursor);
setMouseTracking(false);
_moveAC->completeMoveOperation();
@@ -962,12 +962,12 @@ void ContainerArea::mouseMoveEvent(TQMouseEvent *ev)
return;
}
- if (ev->state() == Qt::LeftButton && !TQT_TQRECT_OBJECT(rect()).contains(ev->pos()))
+ if (ev->state() == TQt::LeftButton && !rect().contains(ev->pos()))
{
// leaveEvent() doesn't work, while grabbing the mouse
_autoScrollTimer.stop();
releaseMouse();
- setCursor(tqarrowCursor);
+ setCursor(TQt::arrowCursor);
setMouseTracking(false);
_moveAC->completeMoveOperation();
@@ -986,7 +986,7 @@ void ContainerArea::mouseMoveEvent(TQMouseEvent *ev)
return;
}
- if (orientation() == Qt::Horizontal)
+ if (orientation() == TQt::Horizontal)
{
int oldX = _moveAC->x() + _moveAC->moveOffset().x();
int x = ev->pos().x() + contentsX();
@@ -1082,7 +1082,7 @@ void ContainerArea::dragEnterEvent(TQDragEnterEvent *ev)
preferedHeight = draggedContainer->heightForWidth(width());
}
- if (orientation() == Qt::Horizontal)
+ if (orientation() == TQt::Horizontal)
{
_dragIndicator->setPreferredSize(TQSize(preferedWidth, height()));
}
@@ -1103,9 +1103,9 @@ void ContainerArea::dragEnterEvent(TQDragEnterEvent *ev)
--it;
BaseContainer* a = *it;
- if ((orientation() == Qt::Horizontal &&
+ if ((orientation() == TQt::Horizontal &&
a->x() < (ev->pos().x() + contentsX()) - _dragMoveOffset.x()) ||
- (orientation() == Qt::Vertical &&
+ (orientation() == TQt::Vertical &&
a->y() < (ev->pos().y() + contentsY()) - _dragMoveOffset.y()))
{
_dragMoveAC = a;
@@ -1114,7 +1114,7 @@ void ContainerArea::dragEnterEvent(TQDragEnterEvent *ev)
} while (it != m_containers.begin());
}
- if (orientation() == Qt::Horizontal)
+ if (orientation() == TQt::Horizontal)
{
moveDragIndicator(ev->pos().x() + contentsX() - _dragMoveOffset.x());
}
@@ -1143,7 +1143,7 @@ void ContainerArea::dragMoveEvent(TQDragMoveEvent* ev)
startContainerMove(_moveAC);
// Align the container to the mouse position.
- if (orientation() == Qt::Horizontal)
+ if (orientation() == TQt::Horizontal)
{
m_layout->moveContainerSwitch(_moveAC, ev->pos().x() + contentsX() - _moveAC->x());
}
@@ -1159,7 +1159,7 @@ void ContainerArea::dragMoveEvent(TQDragMoveEvent* ev)
return;
}
- if (orientation() == Qt::Horizontal)
+ if (orientation() == TQt::Horizontal)
{
moveDragIndicator(ev->pos().x() + contentsX() - _dragMoveOffset.x());
}
@@ -1201,7 +1201,7 @@ void ContainerArea::dropEvent(TQDropEvent *ev)
}
TQObject *parent = ev->source() ? ev->source()->parent() : 0;
- while (parent && (TQT_BASE_OBJECT(parent) != TQT_BASE_OBJECT(this)))
+ while (parent && (parent != this))
{
parent = parent->parent();
}
@@ -1209,13 +1209,13 @@ void ContainerArea::dropEvent(TQDropEvent *ev)
if (parent)
{
// Move container a
- if (orientation() == Qt::Horizontal)
+ if (orientation() == TQt::Horizontal)
{
int oldX = a->x();
int x = _dragIndicator->x();
m_layout->moveContainerSwitch(a, x - oldX);
}
- else if (orientation() == Qt::Vertical)
+ else if (orientation() == TQt::Vertical)
{
int oldY = a->y();
int y = _dragIndicator->y();
@@ -1387,7 +1387,7 @@ bool ContainerArea::eventFilter(TQObject* o, TQEvent* e)
// which contain a ContainerArea can react to layout changes of its
// contents. For example: If an applets grows, the top level widget may
// want to grow as well.
- if (TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(m_contents))
+ if (o == m_contents)
{
if (e->type() == TQEvent::LayoutHint)
{
@@ -1408,7 +1408,7 @@ void ContainerArea::resizeEvent(TQResizeEvent *ev)
void ContainerArea::viewportResizeEvent(TQResizeEvent* ev)
{
Panner::viewportResizeEvent(ev);
- if (orientation() == Qt::Horizontal)
+ if (orientation() == TQt::Horizontal)
{
m_contents->resize(kMax(widthForHeight(ev->size().height()),
ev->size().width()),
@@ -1436,8 +1436,8 @@ void ContainerArea::setBackground()
{
_rootPixmap = new KRootPixmap(this);
_rootPixmap->setCustomPainting(true);
- connect(_rootPixmap, TQT_SIGNAL(backgroundUpdated(const TQPixmap&)),
- TQT_SLOT(updateBackground(const TQPixmap&)));
+ connect(_rootPixmap, TQ_SIGNAL(backgroundUpdated(const TQPixmap&)),
+ TQ_SLOT(updateBackground(const TQPixmap&)));
}
else
{
@@ -1487,7 +1487,7 @@ void ContainerArea::setBackground()
{
TQImage bgImage = srcImage;
- if (orientation() == Qt::Vertical)
+ if (orientation() == TQt::Vertical)
{
if (KickerSettings::rotateBackground())
{
@@ -1516,7 +1516,7 @@ void ContainerArea::setBackground()
KickerLib::colorize(bgImage);
}
setPaletteBackgroundPixmap(TQPixmap(bgImage));
- TQTimer::singleShot(0, this, TQT_SLOT(updateContainersBackground()));
+ TQTimer::singleShot(0, this, TQ_SLOT(updateContainersBackground()));
}
}
@@ -1538,7 +1538,7 @@ void ContainerArea::immutabilityChanged(bool immutable)
}
setAcceptDrops(!isImmutable());
- TQTimer::singleShot(0, this, TQT_SLOT(setBackground()));
+ TQTimer::singleShot(0, this, TQ_SLOT(setBackground()));
}
TQRect ContainerArea::availableSpaceFollowing(BaseContainer* a)
@@ -1565,7 +1565,7 @@ TQRect ContainerArea::availableSpaceFollowing(BaseContainer* a)
}
}
- if (orientation() == Qt::Horizontal)
+ if (orientation() == TQt::Horizontal)
{
if (a)
{
@@ -1599,7 +1599,7 @@ void ContainerArea::moveDragIndicator(int pos)
// Move _dragIndicator to position pos, restricted by availableSpace.
// Resize _dragIndicator if necessary.
- if (orientation() == Qt::Horizontal)
+ if (orientation() == TQt::Horizontal)
{
if (availableSpace.size().width() <
_dragIndicator->preferredSize().width())
@@ -1663,7 +1663,7 @@ void ContainerArea::resizeContents(int w, int h)
if (!m_updateBackgroundsCalled)
{
m_updateBackgroundsCalled = true;
- TQTimer::singleShot(0, this, TQT_SLOT(updateContainersBackground()));
+ TQTimer::singleShot(0, this, TQ_SLOT(updateContainersBackground()));
}
}
@@ -1680,9 +1680,9 @@ void ContainerArea::setPosition(KPanelExtension::Position p)
}
_pos = p;
- Qt::Orientation o = (p == KPanelExtension::Top ||
+ TQt::Orientation o = (p == KPanelExtension::Top ||
p == KPanelExtension::Bottom) ?
- Qt::Horizontal : Qt::Vertical;
+ TQt::Horizontal : TQt::Vertical;
bool orientationChanged = (orientation() != o);
m_layout->setEnabled(false);
@@ -1696,7 +1696,7 @@ void ContainerArea::setPosition(KPanelExtension::Position p)
// when that gets called AFTER we've been moved
// it's not always safe to do the resize here, as scroll buttons
// from the panner may get in our way. =/
- if (o == Qt::Horizontal)
+ if (o == TQt::Horizontal)
{
resizeContents(0, height());
}
@@ -1742,7 +1742,7 @@ void ContainerArea::autoScroll()
{
if(!_moveAC) return;
- if(orientation() == Qt::Horizontal) {
+ if(orientation() == TQt::Horizontal) {
if(_moveAC->pos().x() <= 80)
scrollBy(-10, 0);
else if(_moveAC->pos().x() >= width() - _moveAC->width() - 80)
@@ -1793,7 +1793,7 @@ void ContainerArea::updateContainersBackground()
if( !m_cachedGeometry.contains( *it ))
{
m_cachedGeometry[ *it ] = TQRect();
- connect( *it, TQT_SIGNAL( destroyed()), TQT_SLOT( destroyCachedGeometry()));
+ connect( *it, TQ_SIGNAL( destroyed()), TQ_SLOT( destroyCachedGeometry()));
}
if( m_cachedGeometry[ *it ] != (*it)->geometry())
{
@@ -1910,7 +1910,7 @@ void ContainerArea::showAddAppletDialog()
if (!m_addAppletDialog)
{
m_addAppletDialog = new AddAppletDialog(this, this, 0);
- connect(m_addAppletDialog, TQT_SIGNAL(finished()), this, TQT_SLOT(addAppletDialogDone()));
+ connect(m_addAppletDialog, TQ_SIGNAL(finished()), this, TQ_SLOT(addAppletDialogDone()));
}
else
{
@@ -1958,7 +1958,7 @@ void DragIndicator::paintEvent(TQPaintEvent*)
{
TQPainter painter(this);
TQRect rect(0, 0, width(), height());
- style().tqdrawPrimitive( TQStyle::PE_FocusRect, &painter, rect, colorGroup(),
+ style().drawPrimitive( TQStyle::PE_FocusRect, &painter, rect, colorGroup(),
TQStyle::Style_Default, colorGroup().base() );
}
diff --git a/kicker/kicker/core/containerarea.h b/kicker/kicker/core/containerarea.h
index f52003982..2b543e6ac 100644
--- a/kicker/kicker/core/containerarea.h
+++ b/kicker/kicker/core/containerarea.h
@@ -45,7 +45,7 @@ class AddAppletDialog;
class ContainerArea : public Panner
{
- Q_OBJECT
+ TQ_OBJECT
public:
ContainerArea( TDEConfig* config, TQWidget* parent, TQPopupMenu* opMenu, const char* name = 0 );
@@ -174,7 +174,7 @@ private:
class DragIndicator : public TQWidget
{
- Q_OBJECT
+ TQ_OBJECT
public:
DragIndicator(TQWidget* parent = 0, const char* name = 0);
diff --git a/kicker/kicker/core/containerarealayout.cpp b/kicker/kicker/core/containerarealayout.cpp
index c12778fbb..81080fe82 100644
--- a/kicker/kicker/core/containerarealayout.cpp
+++ b/kicker/kicker/core/containerarealayout.cpp
@@ -122,7 +122,7 @@ void ContainerAreaLayoutItem::setFreeSpaceRatio(double ratio)
m_freeSpaceRatio = ratio;
}
-Qt::Orientation ContainerAreaLayoutItem::orientation() const
+TQt::Orientation ContainerAreaLayoutItem::orientation() const
{
return m_layout->orientation();
}
@@ -139,7 +139,7 @@ void ContainerAreaLayoutItem::setGeometryR(const TQRect& r)
int ContainerAreaLayoutItem::widthForHeightR(int h) const
{
- if (orientation() == Qt::Horizontal)
+ if (orientation() == TQt::Horizontal)
{
return widthForHeight(h);
}
@@ -151,7 +151,7 @@ int ContainerAreaLayoutItem::widthForHeightR(int h) const
int ContainerAreaLayoutItem::widthR() const
{
- if (orientation() == Qt::Horizontal)
+ if (orientation() == TQt::Horizontal)
{
return geometry().width();
}
@@ -163,7 +163,7 @@ int ContainerAreaLayoutItem::widthR() const
int ContainerAreaLayoutItem::heightR() const
{
- if (orientation() == Qt::Horizontal)
+ if (orientation() == TQt::Horizontal)
{
return geometry().height();
}
@@ -175,7 +175,7 @@ int ContainerAreaLayoutItem::heightR() const
int ContainerAreaLayoutItem::leftR() const
{
- if (orientation() == Qt::Horizontal)
+ if (orientation() == TQt::Horizontal)
{
if (TQApplication::reverseLayout())
return m_layout->geometry().right() - geometry().right();
@@ -190,7 +190,7 @@ int ContainerAreaLayoutItem::leftR() const
int ContainerAreaLayoutItem::rightR() const
{
- if (orientation() == Qt::Horizontal)
+ if (orientation() == TQt::Horizontal)
{
if (TQApplication::reverseLayout())
return m_layout->geometry().right() - geometry().left();
@@ -206,46 +206,14 @@ int ContainerAreaLayoutItem::rightR() const
ContainerAreaLayout::ContainerAreaLayout(TQWidget* parent)
: TQLayout(parent),
- m_orientation(Qt::Horizontal),
+ m_orientation(TQt::Horizontal),
m_stretchEnabled(true)
{
}
-#ifdef USE_QT4
-/*!
- \reimp
-*/
-int ContainerAreaLayout::count() const {
- return m_items.count();
-}
-
-/*!
- \reimp
-*/
-TQLayoutItem* ContainerAreaLayout::itemAt(int index) const {
- return index >= 0 && index < m_items.count() ? (*m_items.at(index))->item : 0;
-}
-
-/*!
- \reimp
-*/
-TQLayoutItem* ContainerAreaLayout::takeAt(int index) {
- if (index < 0 || index >= m_items.count())
- return 0;
- ContainerAreaLayoutItem *b = *m_items.at(index);
- m_items.remove(m_items.at(index));
- TQLayoutItem *item = b->item;
- b->item = 0;
- delete b;
-
- invalidate();
- return item;
-}
-#endif // USE_QT4
-
void ContainerAreaLayout::addItem(TQLayoutItem* item)
{
- m_items.append(new ContainerAreaLayoutItem(static_cast<TQLayoutItem*>(item), this));
+ m_items.append(new ContainerAreaLayoutItem(item, this));
}
void ContainerAreaLayout::insertIntoFreeSpace(TQWidget* widget, TQPoint insertionPoint)
@@ -283,7 +251,7 @@ void ContainerAreaLayout::insertIntoFreeSpace(TQWidget* widget, TQPoint insertio
return;
}
- int insPos = (orientation() == Qt::Horizontal) ? insertionPoint.x(): insertionPoint.y();
+ int insPos = (orientation() == TQt::Horizontal) ? insertionPoint.x(): insertionPoint.y();
Item* current = *currentIt;
Item* next = *nextIt;
@@ -419,7 +387,7 @@ TQSize ContainerAreaLayout::sizeHint() const
{
const int size = KickerLib::sizeValue(KPanelExtension::SizeSmall);
- if (orientation() == Qt::Horizontal)
+ if (orientation() == TQt::Horizontal)
{
return TQSize(widthForHeight(size), size);
}
@@ -433,7 +401,7 @@ TQSize ContainerAreaLayout::minimumSize() const
{
const int size = KickerLib::sizeValue(KPanelExtension::SizeTiny);
- if (orientation() == Qt::Horizontal)
+ if (orientation() == TQt::Horizontal)
{
return TQSize(widthForHeight(size), size);
}
@@ -445,13 +413,7 @@ TQSize ContainerAreaLayout::minimumSize() const
TQLayoutIterator ContainerAreaLayout::iterator()
{
- // [FIXME]
-#ifdef USE_QT4
- #warning [FIXME] ContainerAreaLayout iterators may not function correctly under Qt4
- return TQLayoutIterator(this); // [FIXME]
-#else // USE_QT4
return TQLayoutIterator(new ContainerAreaLayoutIterator(&m_items));
-#endif // USE_QT4
}
void ContainerAreaLayout::setGeometry(const TQRect& rect)
@@ -559,7 +521,7 @@ int ContainerAreaLayout::distanceToPreviousItem(ItemList::const_iterator it) con
void ContainerAreaLayout::moveContainerSwitch(TQWidget* container, int distance)
{
- const bool horizontal = orientation() == Qt::Horizontal;
+ const bool horizontal = orientation() == TQt::Horizontal;
const bool reverseLayout = TQApplication::reverseLayout();
if (horizontal && reverseLayout)
@@ -696,7 +658,7 @@ void ContainerAreaLayout::moveContainerSwitch(TQWidget* container, int distance)
int ContainerAreaLayout::moveContainerPush(TQWidget* a, int distance)
{
- const bool horizontal = orientation() == Qt::Horizontal;
+ const bool horizontal = orientation() == TQt::Horizontal;
const bool reverseLayout = TQApplication::reverseLayout();
// Get the iterator 'it' pointing to the layoutitem representing 'a'.
@@ -767,7 +729,7 @@ int ContainerAreaLayout::moveContainerPushRecursive(ItemList::const_iterator it,
TQRect ContainerAreaLayout::transform(const TQRect& r) const
{
- if (orientation() == Qt::Horizontal)
+ if (orientation() == TQt::Horizontal)
{
if (TQApplication::reverseLayout())
{
@@ -788,7 +750,7 @@ TQRect ContainerAreaLayout::transform(const TQRect& r) const
int ContainerAreaLayout::widthForHeightR(int h) const
{
- if (orientation() == Qt::Horizontal)
+ if (orientation() == TQt::Horizontal)
{
return widthForHeight(h);
}
@@ -800,7 +762,7 @@ int ContainerAreaLayout::widthForHeightR(int h) const
int ContainerAreaLayout::widthR() const
{
- if (orientation() == Qt::Horizontal)
+ if (orientation() == TQt::Horizontal)
{
return geometry().width();
}
@@ -812,7 +774,7 @@ int ContainerAreaLayout::widthR() const
int ContainerAreaLayout::heightR() const
{
- if (orientation() == Qt::Horizontal)
+ if (orientation() == TQt::Horizontal)
{
return geometry().height();
}
@@ -824,7 +786,7 @@ int ContainerAreaLayout::heightR() const
int ContainerAreaLayout::leftR() const
{
- if (orientation() == Qt::Horizontal)
+ if (orientation() == TQt::Horizontal)
return geometry().left();
else
return geometry().top();
@@ -832,7 +794,7 @@ int ContainerAreaLayout::leftR() const
int ContainerAreaLayout::rightR() const
{
- if (orientation() == Qt::Horizontal)
+ if (orientation() == TQt::Horizontal)
return geometry().right();
else
return geometry().bottom();
diff --git a/kicker/kicker/core/containerarealayout.h b/kicker/kicker/core/containerarealayout.h
index 4edeb8be2..abb28c6f0 100644
--- a/kicker/kicker/core/containerarealayout.h
+++ b/kicker/kicker/core/containerarealayout.h
@@ -108,12 +108,6 @@ class ContainerAreaLayout : public TQLayout
int leftR() const;
int rightR() const;
-#ifdef USE_QT4
-
- QLAYOUT_REQUIRED_METHOD_DECLARATIONS
-
-#endif // USE_QT4
-
private:
int moveContainerPushRecursive(ItemList::const_iterator it, int distance);
int distanceToPreviousItem(ItemList::const_iterator it) const;
diff --git a/kicker/kicker/core/extensionmanager.cpp b/kicker/kicker/core/extensionmanager.cpp
index 796b98125..cb20c7a58 100644
--- a/kicker/kicker/core/extensionmanager.cpp
+++ b/kicker/kicker/core/extensionmanager.cpp
@@ -179,7 +179,7 @@ void ExtensionManager::initialize()
m_loadingContainers = false;
pm->clearUntrustedLists();
- connect(Kicker::the(), TQT_SIGNAL(configurationChanged()), TQT_SLOT(configurationChanged()));
+ connect(Kicker::the(), TQ_SIGNAL(configurationChanged()), TQ_SLOT(configurationChanged()));
DCOPRef r( "ksmserver", "ksmserver" );
r.send( "resumeStartup", TQCString( "kicker" ));
}
@@ -222,7 +222,7 @@ void ExtensionManager::configureMenubar(bool duringInit)
updateMenubar();
m_menubarPanel->show();
- connect(kapp, TQT_SIGNAL(tdedisplayFontChanged()), TQT_SLOT(updateMenubar()));
+ connect(kapp, TQ_SIGNAL(tdedisplayFontChanged()), TQ_SLOT(updateMenubar()));
}
else if (m_menubarPanel)
{
@@ -437,8 +437,8 @@ void ExtensionManager::addContainer(ExtensionContainer* e)
_containers.append(e);
- connect(e, TQT_SIGNAL(removeme(ExtensionContainer*)),
- this, TQT_SLOT(removeContainer(ExtensionContainer*)));
+ connect(e, TQ_SIGNAL(removeme(ExtensionContainer*)),
+ this, TQ_SLOT(removeContainer(ExtensionContainer*)));
if (!m_loadingContainers) {
emit desktopIconsAreaChanged(desktopIconsArea(e->xineramaScreen()),
diff --git a/kicker/kicker/core/extensionmanager.h b/kicker/kicker/core/extensionmanager.h
index b4a53ec31..1e36bca56 100644
--- a/kicker/kicker/core/extensionmanager.h
+++ b/kicker/kicker/core/extensionmanager.h
@@ -33,7 +33,7 @@ const int XineramaAllScreens = -2;
class ExtensionManager : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
static ExtensionManager* the();
diff --git a/kicker/kicker/core/kicker.cpp b/kicker/kicker/core/kicker.cpp
index 94517607e..19c348851 100644
--- a/kicker/kicker/core/kicker.cpp
+++ b/kicker/kicker/core/kicker.cpp
@@ -77,7 +77,7 @@ Kicker::Kicker()
// this means we've most likely crashed once. so let's see if we
// stay up for more than 2 minutes time, and if so reset the
// crash handler since the crash isn't a frequent offender
- TQTimer::singleShot(120000, this, TQT_SLOT(setCrashHandler()));
+ TQTimer::singleShot(120000, this, TQ_SLOT(setCrashHandler()));
}
else
{
@@ -116,7 +116,7 @@ Kicker::Kicker()
// initialize our keys
// note that this creates the KMenu by calling MenuManager::the()
- keys = new TDEGlobalAccel( TQT_TQOBJECT(this) );
+ keys = new TDEGlobalAccel( this );
#define KICKER_ALL_BINDINGS
#include "kickerbindings.cpp"
keys->readSettings();
@@ -125,19 +125,19 @@ Kicker::Kicker()
// set up our global settings
configure();
- connect(this, TQT_SIGNAL(settingsChanged(int)), TQT_SLOT(slotSettingsChanged(int)));
- connect(this, TQT_SIGNAL(tdedisplayPaletteChanged()), TQT_SLOT(paletteChanged()));
- connect(this, TQT_SIGNAL(tdedisplayStyleChanged()), TQT_SLOT(slotStyleChanged()));
+ connect(this, TQ_SIGNAL(settingsChanged(int)), TQ_SLOT(slotSettingsChanged(int)));
+ connect(this, TQ_SIGNAL(tdedisplayPaletteChanged()), TQ_SLOT(paletteChanged()));
+ connect(this, TQ_SIGNAL(tdedisplayStyleChanged()), TQ_SLOT(slotStyleChanged()));
#if (TQT_VERSION-0 >= 0x030200) // XRANDR support
- connect(desktop(), TQT_SIGNAL(resized(int)), TQT_SLOT(slotDesktopResized()));
+ connect(desktop(), TQ_SIGNAL(resized(int)), TQ_SLOT(slotDesktopResized()));
#endif
// the panels, aka extensions
- TQTimer::singleShot(0, ExtensionManager::the(), TQT_SLOT(initialize()));
+ TQTimer::singleShot(0, ExtensionManager::the(), TQ_SLOT(initialize()));
- connect(ExtensionManager::the(), TQT_SIGNAL(desktopIconsAreaChanged(const TQRect &, int)),
- this, TQT_SLOT(slotDesktopIconsAreaChanged(const TQRect &, int)));
+ connect(ExtensionManager::the(), TQ_SIGNAL(desktopIconsAreaChanged(const TQRect &, int)),
+ this, TQ_SLOT(slotDesktopIconsAreaChanged(const TQRect &, int)));
}
Kicker::~Kicker()
@@ -258,7 +258,7 @@ void Kicker::quit()
void Kicker::restart()
{
// do this on a timer to give us time to return true
- TQTimer::singleShot(0, this, TQT_SLOT(slotRestart()));
+ TQTimer::singleShot(0, this, TQ_SLOT(slotRestart()));
}
void Kicker::slotRestart()
@@ -352,7 +352,7 @@ void Kicker::showConfig(const TQString& configPath, const TQString& configFile,
moduleNumber++;
}
- connect(m_configDialog, TQT_SIGNAL(finished()), TQT_SLOT(configDialogFinished()));
+ connect(m_configDialog, TQ_SIGNAL(finished()), TQ_SLOT(configDialogFinished()));
}
if (!configPath.isEmpty())
diff --git a/kicker/kicker/core/kicker.h b/kicker/kicker/core/kicker.h
index 6a3e02d36..1868c0bbe 100644
--- a/kicker/kicker/core/kicker.h
+++ b/kicker/kicker/core/kicker.h
@@ -38,7 +38,7 @@ class PanelPopupButton;
class Kicker : public KUniqueApplication
{
- Q_OBJECT
+ TQ_OBJECT
K_DCOP
public:
diff --git a/kicker/kicker/core/kickerbindings.cpp b/kicker/kicker/core/kickerbindings.cpp
index 46cfa432d..e8999a22d 100644
--- a/kicker/kicker/core/kickerbindings.cpp
+++ b/kicker/kicker/core/kickerbindings.cpp
@@ -23,7 +23,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#ifndef NOSLOTS
# define DEF( name, key3, key4, target, fnSlot ) \
- keys->insert( name, i18n(name), TQString(), key3, key4, TQT_TQOBJECT(target), TQT_SLOT(fnSlot) )
+ keys->insert( name, i18n(name), TQString(), key3, key4, target, TQ_SLOT(fnSlot) )
#else
# define DEF( name, key3, key4, target, fnSlot ) \
keys->insert( name, i18n(name), TQString(), key3, key4 )
@@ -37,12 +37,12 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#ifdef LAUNCH_MENU
keys->insert("Program:kicker", i18n("Panel"));
- DEF(I18N_NOOP("Popup Launch Menu" ), ALT+Qt::Key_F1, WIN+Qt::Key_Menu,
+ DEF(I18N_NOOP("Popup Launch Menu" ), ALT+TQt::Key_F1, WIN+TQt::Key_Menu,
MenuManager::the(), kmenuAccelActivated());
#endif
#ifdef SHOW_DESKTOP
- DEF(I18N_NOOP( "Toggle Showing Desktop" ), ALT+CTRL+Qt::Key_D, WIN+CTRL+Qt::Key_D,
+ DEF(I18N_NOOP( "Toggle Showing Desktop" ), ALT+CTRL+TQt::Key_D, WIN+CTRL+TQt::Key_D,
this, slotToggleShowDesktop());
#endif
diff --git a/kicker/kicker/core/menumanager.cpp b/kicker/kicker/core/menumanager.cpp
index a7326844e..94ee0acfb 100644
--- a/kicker/kicker/core/menumanager.cpp
+++ b/kicker/kicker/core/menumanager.cpp
@@ -71,8 +71,8 @@ MenuManager::MenuManager(TQObject *parent)
m_kmenu = new KMenuStub(new KMenu);
kapp->dcopClient()->setNotifications(true);
- connect(kapp->dcopClient(), TQT_SIGNAL(applicationRemoved(const TQCString&)),
- this, TQT_SLOT(applicationRemoved(const TQCString&)));
+ connect(kapp->dcopClient(), TQ_SIGNAL(applicationRemoved(const TQCString&)),
+ this, TQ_SLOT(applicationRemoved(const TQCString&)));
}
MenuManager::~MenuManager()
@@ -164,7 +164,7 @@ void MenuManager::kmenuAccelActivated()
// the item under the cursor gets selected. The single shot
// avoids this from happening by allowing the item to be selected
// when the event loop is enterred, and then resetting it.
- TQTimer::singleShot(0, this, TQT_SLOT(slotSetKMenuItemActive()));
+ TQTimer::singleShot(0, this, TQ_SLOT(slotSetKMenuItemActive()));
}
else
{
diff --git a/kicker/kicker/core/menumanager.h b/kicker/kicker/core/menumanager.h
index 1139b0b61..03e107767 100644
--- a/kicker/kicker/core/menumanager.h
+++ b/kicker/kicker/core/menumanager.h
@@ -40,7 +40,7 @@ typedef TQValueList<PanelPopupButton*> KButtonList;
*/
class MenuManager : public TQObject, DCOPObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
static MenuManager* the();
diff --git a/kicker/kicker/core/panelextension.cpp b/kicker/kicker/core/panelextension.cpp
index 93bd2356b..e55f65697 100644
--- a/kicker/kicker/core/panelextension.cpp
+++ b/kicker/kicker/core/panelextension.cpp
@@ -71,7 +71,7 @@ PanelExtension::PanelExtension(const TQString& configFile, TQWidget *parent, con
// container area
_containerArea = new ContainerArea( config(), this, opMenu() );
- connect(_containerArea, TQT_SIGNAL(maintainFocus(bool)), this, TQT_SIGNAL(maintainFocus(bool)));
+ connect(_containerArea, TQ_SIGNAL(maintainFocus(bool)), this, TQ_SIGNAL(maintainFocus(bool)));
_layout->addWidget(_containerArea);
_containerArea->viewport()->installEventFilter(this);
@@ -81,15 +81,15 @@ PanelExtension::PanelExtension(const TQString& configFile, TQWidget *parent, con
// beginning.
positionChange(position());
- connect(Kicker::the(), TQT_SIGNAL(configurationChanged()),
- TQT_SLOT(configurationChanged()));
- connect(Kicker::the(), TQT_SIGNAL(immutabilityChanged(bool)),
- TQT_SLOT(immutabilityChanged(bool)));
+ connect(Kicker::the(), TQ_SIGNAL(configurationChanged()),
+ TQ_SLOT(configurationChanged()));
+ connect(Kicker::the(), TQ_SIGNAL(immutabilityChanged(bool)),
+ TQ_SLOT(immutabilityChanged(bool)));
// we wait to get back to the event loop to start up the container area so that
// the main panel in ExtensionManager will be assigned and we can tell in a
// relatively non-hackish way that we are (or aren't) the "main panel"
- TQTimer::singleShot(0, this, TQT_SLOT(populateContainerArea()));
+ TQTimer::singleShot(0, this, TQ_SLOT(populateContainerArea()));
}
PanelExtension::~PanelExtension()
@@ -129,7 +129,7 @@ TQPopupMenu* PanelExtension::opMenu()
}
_opMnu = new TQPopupMenu(this);
- connect(_opMnu, TQT_SIGNAL(aboutToShow()), this, TQT_SLOT(slotBuildOpMenu()));
+ connect(_opMnu, TQ_SIGNAL(aboutToShow()), this, TQ_SLOT(slotBuildOpMenu()));
return _opMnu;
}
@@ -162,7 +162,7 @@ bool PanelExtension::eventFilter(TQObject*, TQEvent * e)
if ( e->type() == TQEvent::MouseButtonPress )
{
TQMouseEvent* me = (TQMouseEvent*) e;
- if ( me->button() == Qt::RightButton && kapp->authorize("action/kicker_rmb"))
+ if ( me->button() == TQt::RightButton && kapp->authorize("action/kicker_rmb"))
{
Kicker::the()->setInsertionPoint(me->globalPos());
opMenu()->exec(me->globalPos());
@@ -339,7 +339,7 @@ void PanelExtension::slotBuildOpMenu()
{
_opMnu->insertItem(isMenuBar ? i18n("Add &Applet to Menubar...")
: i18n("Add &Applet to Panel..."),
- _containerArea, TQT_SLOT(showAddAppletDialog()));
+ _containerArea, TQ_SLOT(showAddAppletDialog()));
m_panelAddMenu = new PanelAddButtonMenu(_containerArea, this);
_opMnu->insertItem(isMenuBar ? i18n("Add Appli&cation to Menubar")
: i18n("Add Appli&cation to Panel"),
@@ -362,7 +362,7 @@ void PanelExtension::slotBuildOpMenu()
}
_opMnu->insertItem(SmallIconSet("system-lock-screen"), i18n("&Lock Panels"),
- Kicker::the(), TQT_SLOT(toggleLock()));
+ Kicker::the(), TQ_SLOT(toggleLock()));
}
else if (!Kicker::the()->isKioskImmutable())
{
@@ -370,20 +370,20 @@ void PanelExtension::slotBuildOpMenu()
SmallIconSet("system-lock-screen"),
kickerImmutable ? i18n("Un&lock Panels") :
i18n("&Lock Panels"),
- Kicker::the(), TQT_SLOT(toggleLock()));
+ Kicker::the(), TQ_SLOT(toggleLock()));
}
if (!isMenuBar && !Kicker::the()->isKioskImmutable())
{
_opMnu->insertItem(SmallIconSet("configure"),
i18n("&Configure Panel..."),
- this, TQT_SLOT(showConfig()));
+ this, TQ_SLOT(showConfig()));
_opMnu->insertSeparator();
}
_opMnu->insertItem(SmallIconSet("fork"),
i18n("&Launch Process Manager..."),
- this, TQT_SLOT(showProcessManager()));
+ this, TQ_SLOT(showProcessManager()));
_opMnu->insertSeparator();
if (kapp->authorize("action/help"))
diff --git a/kicker/kicker/core/panelextension.h b/kicker/kicker/core/panelextension.h
index c7882291f..02460b00b 100644
--- a/kicker/kicker/core/panelextension.h
+++ b/kicker/kicker/core/panelextension.h
@@ -40,7 +40,7 @@ class TQGridLayout;
class PanelExtension : public KPanelExtension, virtual public DCOPObject
{
- Q_OBJECT
+ TQ_OBJECT
K_DCOP
public:
@@ -109,7 +109,7 @@ private:
class MenubarExtension : public PanelExtension
{
- Q_OBJECT
+ TQ_OBJECT
public:
MenubarExtension(const AppletInfo& info);
diff --git a/kicker/kicker/core/pluginmanager.cpp b/kicker/kicker/core/pluginmanager.cpp
index a8b79877a..78db46495 100644
--- a/kicker/kicker/core/pluginmanager.cpp
+++ b/kicker/kicker/core/pluginmanager.cpp
@@ -123,8 +123,8 @@ PluginManager::~PluginManager()
AppletInfo::Dict::const_iterator it = _dict.constBegin();
for (; it != _dict.constEnd(); ++it)
{
- disconnect(it.key(), TQT_SIGNAL(destroyed( TQObject*)),
- this, TQT_SLOT(slotPluginDestroyed(TQObject*)));
+ disconnect(it.key(), TQ_SIGNAL(destroyed( TQObject*)),
+ this, TQ_SLOT(slotPluginDestroyed(TQObject*)));
delete it.data();
}
@@ -159,9 +159,9 @@ KPanelApplet* PluginManager::loadApplet(const AppletInfo& info,
if (applet)
{
- _dict.insert( TQT_TQOBJECT(applet), new AppletInfo( info ) );
- connect( applet, TQT_SIGNAL( destroyed( TQObject* ) ),
- TQT_SLOT( slotPluginDestroyed( TQObject* ) ) );
+ _dict.insert( applet, new AppletInfo( info ) );
+ connect( applet, TQ_SIGNAL( destroyed( TQObject* ) ),
+ TQ_SLOT( slotPluginDestroyed( TQObject* ) ) );
}
return applet;
@@ -197,9 +197,9 @@ KPanelExtension* PluginManager::loadExtension(
KPanelExtension* extension = init_ptr( parent, info.configFile() );
if( extension ) {
- _dict.insert( TQT_TQOBJECT(extension), new AppletInfo( info ) );
- connect( extension, TQT_SIGNAL( destroyed( TQObject* ) ),
- TQT_SLOT( slotPluginDestroyed( TQObject* ) ) );
+ _dict.insert( extension, new AppletInfo( info ) );
+ connect( extension, TQ_SIGNAL( destroyed( TQObject* ) ),
+ TQ_SLOT( slotPluginDestroyed( TQObject* ) ) );
}
return extension;
@@ -360,12 +360,12 @@ LibUnloader::LibUnloader( const TQString &libName, TQObject *parent )
{
// NOTE: this doesn't work on kicker shutdown because the timer never gets
// fired.
- TQTimer::singleShot( 0, this, TQT_SLOT( unload() ) );
+ TQTimer::singleShot( 0, this, TQ_SLOT( unload() ) );
}
void LibUnloader::unload( const TQString &libName )
{
- (void)new LibUnloader( libName, TQT_TQOBJECT(kapp) );
+ (void)new LibUnloader( libName, kapp );
}
void LibUnloader::unload()
diff --git a/kicker/kicker/core/pluginmanager.h b/kicker/kicker/core/pluginmanager.h
index f67c13490..d78d1b07a 100644
--- a/kicker/kicker/core/pluginmanager.h
+++ b/kicker/kicker/core/pluginmanager.h
@@ -40,7 +40,7 @@ class TQPopupMenu;
class KDE_EXPORT PluginManager : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
static PluginManager* the();
@@ -90,7 +90,7 @@ private:
class LibUnloader : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
static void unload( const TQString &libName );
diff --git a/kicker/kicker/core/showdesktop.cpp b/kicker/kicker/core/showdesktop.cpp
index 4a6639574..0a1e2907c 100644
--- a/kicker/kicker/core/showdesktop.cpp
+++ b/kicker/kicker/core/showdesktop.cpp
@@ -49,8 +49,8 @@ ShowDesktop::ShowDesktop()
m_wmSupport = i.isSupported( NET::WM2ShowingDesktop );
if( m_wmSupport )
{
- connect( Kicker::the()->twinModule(), TQT_SIGNAL( showingDesktopChanged( bool )),
- TQT_SLOT( showingDesktopChanged( bool )));
+ connect( Kicker::the()->twinModule(), TQ_SIGNAL( showingDesktopChanged( bool )),
+ TQ_SLOT( showingDesktopChanged( bool )));
showingDesktopChanged( m_showingDesktop = Kicker::the()->twinModule()->showingDesktop());
}
}
@@ -161,21 +161,21 @@ void ShowDesktop::showDesktop( bool b )
}
// on desktop changes or when a window is deiconified, we abort the show desktop mode
- connect(Kicker::the()->twinModule(), TQT_SIGNAL(currentDesktopChanged(int)),
- TQT_SLOT(slotCurrentDesktopChanged(int)));
- connect(Kicker::the()->twinModule(), TQT_SIGNAL(windowChanged(WId,unsigned int)),
- TQT_SLOT(slotWindowChanged(WId,unsigned int)));
- connect(Kicker::the()->twinModule(), TQT_SIGNAL(windowAdded(WId)),
- TQT_SLOT(slotWindowAdded(WId)));
+ connect(Kicker::the()->twinModule(), TQ_SIGNAL(currentDesktopChanged(int)),
+ TQ_SLOT(slotCurrentDesktopChanged(int)));
+ connect(Kicker::the()->twinModule(), TQ_SIGNAL(windowChanged(WId,unsigned int)),
+ TQ_SLOT(slotWindowChanged(WId,unsigned int)));
+ connect(Kicker::the()->twinModule(), TQ_SIGNAL(windowAdded(WId)),
+ TQ_SLOT(slotWindowAdded(WId)));
}
else
{
- disconnect(Kicker::the()->twinModule(), TQT_SIGNAL(currentDesktopChanged(int)),
- this, TQT_SLOT(slotCurrentDesktopChanged(int)));
- disconnect(Kicker::the()->twinModule(), TQT_SIGNAL(windowChanged(WId,unsigned int)),
- this, TQT_SLOT(slotWindowChanged(WId,unsigned int)));
- disconnect(Kicker::the()->twinModule(), TQT_SIGNAL(windowAdded(WId)),
- this, TQT_SLOT(slotWindowAdded(WId)));
+ disconnect(Kicker::the()->twinModule(), TQ_SIGNAL(currentDesktopChanged(int)),
+ this, TQ_SLOT(slotCurrentDesktopChanged(int)));
+ disconnect(Kicker::the()->twinModule(), TQ_SIGNAL(windowChanged(WId,unsigned int)),
+ this, TQ_SLOT(slotWindowChanged(WId,unsigned int)));
+ disconnect(Kicker::the()->twinModule(), TQ_SIGNAL(windowAdded(WId)),
+ this, TQ_SLOT(slotWindowAdded(WId)));
for (TQValueVector<WId>::ConstIterator it = m_iconifiedList.begin();
it != m_iconifiedList.end();
diff --git a/kicker/kicker/core/showdesktop.h b/kicker/kicker/core/showdesktop.h
index 88cc7d7c7..ec7119438 100644
--- a/kicker/kicker/core/showdesktop.h
+++ b/kicker/kicker/core/showdesktop.h
@@ -33,7 +33,7 @@ class KWinModule;
*/
class ShowDesktop : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
static ShowDesktop* the();
diff --git a/kicker/kicker/core/unhidetrigger.cpp b/kicker/kicker/core/unhidetrigger.cpp
index 0a5093a61..1acc182f6 100644
--- a/kicker/kicker/core/unhidetrigger.cpp
+++ b/kicker/kicker/core/unhidetrigger.cpp
@@ -40,7 +40,7 @@ UnhideTrigger::UnhideTrigger()
, enabledCount( 0 )
{
_timer = new TQTimer( this, "UnhideTrigger" );
- connect( _timer, TQT_SIGNAL(timeout()), TQT_SLOT(pollMouse()) );
+ connect( _timer, TQ_SIGNAL(timeout()), TQ_SLOT(pollMouse()) );
}
void UnhideTrigger::setEnabled( bool enable )
diff --git a/kicker/kicker/core/unhidetrigger.h b/kicker/kicker/core/unhidetrigger.h
index af05a43f5..472009014 100644
--- a/kicker/kicker/core/unhidetrigger.h
+++ b/kicker/kicker/core/unhidetrigger.h
@@ -32,9 +32,9 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <tqobject.h>
-class UnhideTrigger : public QObject
+class UnhideTrigger : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
enum Trigger { None = 0, Top, TopRight, Right, BottomRight, Bottom, BottomLeft, Left, TopLeft };
static UnhideTrigger* the();
diff --git a/kicker/kicker/core/userrectsel.cpp b/kicker/kicker/core/userrectsel.cpp
index d48c43aad..04a2a4afd 100644
--- a/kicker/kicker/core/userrectsel.cpp
+++ b/kicker/kicker/core/userrectsel.cpp
@@ -46,7 +46,7 @@ UserRectSel::~UserRectSel()
void UserRectSel::mouseReleaseEvent(TQMouseEvent * e)
{
- if (e->button() == Qt::LeftButton)
+ if (e->button() == TQt::LeftButton)
{
tqApp->exit_loop();
}
@@ -89,7 +89,7 @@ void UserRectSel::paintCurrent()
for (i = 0; i < 4; i++)
{
_frame[i] = new TQWidget(0, 0, (WFlags)(WStyle_Customize | WStyle_NoBorder | WX11BypassWM));
- _frame[i]->setPaletteBackgroundColor(Qt::black);
+ _frame[i]->setPaletteBackgroundColor(TQt::black);
}
for (i = 4; i < 8; i++)
{
diff --git a/kicker/kicker/core/userrectsel.h b/kicker/kicker/core/userrectsel.h
index 564a6d980..dbc4d62be 100644
--- a/kicker/kicker/core/userrectsel.h
+++ b/kicker/kicker/core/userrectsel.h
@@ -34,7 +34,7 @@ class ShutUpCompiler;
class UserRectSel : public TQWidget
{
- Q_OBJECT
+ TQ_OBJECT
public:
class PanelStrut
diff --git a/kicker/kicker/core/usersizesel.cpp b/kicker/kicker/core/usersizesel.cpp
index 107a2527a..654114d90 100644
--- a/kicker/kicker/core/usersizesel.cpp
+++ b/kicker/kicker/core/usersizesel.cpp
@@ -46,7 +46,7 @@ UserSizeSel::UserSizeSel(const TQRect& rect, const KPanelExtension::Position pos
}
if ((pos == KPanelExtension::Top) || (pos == KPanelExtension::Bottom))
{
- setCursor(tqsizeVerCursor);
+ setCursor(TQt::sizeVerCursor);
}
setGeometry(-10, -10, 2, 2);
@@ -69,7 +69,7 @@ UserSizeSel::~UserSizeSel()
void UserSizeSel::mouseReleaseEvent(TQMouseEvent * e)
{
- if (e->button() == Qt::LeftButton)
+ if (e->button() == TQt::LeftButton)
{
tqApp->exit_loop();
}
@@ -156,7 +156,7 @@ void UserSizeSel::paintCurrent()
for (i = 0; i < 4; i++)
{
_frame[i] = new TQWidget(0, 0, (WFlags)(WStyle_Customize | WStyle_NoBorder | WX11BypassWM));
- _frame[i]->setPaletteBackgroundColor(Qt::black);
+ _frame[i]->setPaletteBackgroundColor(TQt::black);
}
for (i = 4; i < 8; i++)
{
diff --git a/kicker/kicker/core/usersizesel.h b/kicker/kicker/core/usersizesel.h
index 64c8950bd..658baecf2 100644
--- a/kicker/kicker/core/usersizesel.h
+++ b/kicker/kicker/core/usersizesel.h
@@ -34,7 +34,7 @@ class ShutUpCompiler;
class UserSizeSel : public TQWidget
{
- Q_OBJECT
+ TQ_OBJECT
public:
static TQRect select(const TQRect& rect, const KPanelExtension::Position pos, const TQColor& color);
diff --git a/kicker/kicker/interfaces/kickoff-search-plugin.h b/kicker/kicker/interfaces/kickoff-search-plugin.h
index e605e27c5..fc733f207 100644
--- a/kicker/kicker/interfaces/kickoff-search-plugin.h
+++ b/kicker/kicker/interfaces/kickoff-search-plugin.h
@@ -91,7 +91,7 @@ namespace KickoffSearch {
class KDE_EXPORT Plugin : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
Plugin(TQObject *parent, const char* name=0);
diff --git a/kicker/kicker/interfaces/kickoffsearchinterface.h b/kicker/kicker/interfaces/kickoffsearchinterface.h
index 485e9757c..b8a866c7b 100644
--- a/kicker/kicker/interfaces/kickoffsearchinterface.h
+++ b/kicker/kicker/interfaces/kickoffsearchinterface.h
@@ -30,7 +30,7 @@ namespace KickoffSearch
{
class KDE_EXPORT KickoffSearchInterface :public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
KickoffSearchInterface( TQObject* parent, const char* name = 0);
diff --git a/kicker/kicker/ui/CMakeLists.txt b/kicker/kicker/ui/CMakeLists.txt
index 754288ce9..c773cfe7b 100644
--- a/kicker/kicker/ui/CMakeLists.txt
+++ b/kicker/kicker/ui/CMakeLists.txt
@@ -20,7 +20,6 @@ include_directories(
${CMAKE_SOURCE_DIR}/kicker/kicker/buttons
${CMAKE_SOURCE_DIR}/tdmlib
${CMAKE_SOURCE_DIR}/libkonq
- ${DBUS_TQT_INCLUDE_DIRS}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
@@ -56,5 +55,5 @@ set( ${target}_SRCS
tde_add_library( ${target} STATIC_PIC AUTOMOC
SOURCES ${${target}_SRCS}
DEPENDENCIES kicker_core-static
- LINK dmctl-static kickoffsearch_interfaces-shared ${DBUS_TQT_LIBRARIES} ${HAL_LIBRARIES}
+ LINK dmctl-static kickoffsearch_interfaces-shared ${TDEHW_LIBRARIES}
)
diff --git a/kicker/kicker/ui/addapplet.cpp b/kicker/kicker/ui/addapplet.cpp
index 0db6bc352..fb5e3f16d 100644
--- a/kicker/kicker/ui/addapplet.cpp
+++ b/kicker/kicker/ui/addapplet.cpp
@@ -61,7 +61,7 @@ AppletWidget::AppletWidget(const AppletInfo& info, bool odd, TQWidget *parent)
m_odd(odd),
m_selected(false)
{
- setFocusPolicy(TQ_StrongFocus);
+ setFocusPolicy(TQWidget::StrongFocus);
setSelected(m_selected);
itemTitle->setText("<h3>" + info.name() + "</h3>");
@@ -84,8 +84,8 @@ bool AppletWidget::eventFilter(TQObject*, TQEvent* e)
{
if (e->type() == TQEvent::MouseButtonPress)
{
- TQMouseEvent* me = TQT_TQMOUSEEVENT(e);
- if (me->button() & Qt::LeftButton)
+ TQMouseEvent* me = static_cast<TQMouseEvent*>(e);
+ if (me->button() & TQt::LeftButton)
{
m_dragStart = me->pos();
}
@@ -97,7 +97,7 @@ bool AppletWidget::eventFilter(TQObject*, TQEvent* e)
if (e->type() == TQEvent::MouseMove)
{
- TQMouseEvent* me = TQT_TQMOUSEEVENT(e);
+ TQMouseEvent* me = static_cast<TQMouseEvent*>(e);
if ((me->pos() - m_dragStart).manhattanLength() >
TDEGlobalSettings::dndEventDelay())
{
@@ -123,21 +123,21 @@ bool AppletWidget::eventFilter(TQObject*, TQEvent* e)
void AppletWidget::keyPressEvent(TQKeyEvent *e)
{
- if (e->key() == Qt::Key_Enter ||
- e->key() == Qt::Key_Return)
+ if (e->key() == TQt::Key_Enter ||
+ e->key() == TQt::Key_Return)
{
emit doubleClicked(this);
}
- else if (e->key() == Qt::Key_Up)
+ else if (e->key() == TQt::Key_Up)
{
TQKeyEvent fakedKeyPress(TQEvent::KeyPress, TQt::Key_BackTab, 0, 0);
TQKeyEvent fakedKeyRelease(TQEvent::KeyRelease, Key_BackTab, 0, 0);
TQApplication::sendEvent(this, &fakedKeyPress);
TQApplication::sendEvent(this, &fakedKeyRelease);
}
- else if (e->key() == Qt::Key_Down)
+ else if (e->key() == TQt::Key_Down)
{
- TQKeyEvent fakedKeyPress(TQEvent::KeyPress, Qt::Key_Tab, 0, 0);
+ TQKeyEvent fakedKeyPress(TQEvent::KeyPress, TQt::Key_Tab, 0, 0);
TQKeyEvent fakedKeyRelease(TQEvent::KeyRelease, Key_Escape, 0, 0);
TQApplication::sendEvent(this, &fakedKeyPress);
TQApplication::sendEvent(this, &fakedKeyRelease);
@@ -150,7 +150,7 @@ void AppletWidget::keyPressEvent(TQKeyEvent *e)
void AppletWidget::mousePressEvent(TQMouseEvent *e)
{
- if (e->button() == Qt::LeftButton)
+ if (e->button() == TQt::LeftButton)
{
emit clicked(this);
m_dragStart = e->pos();
@@ -162,7 +162,7 @@ void AppletWidget::mousePressEvent(TQMouseEvent *e)
void AppletWidget::mouseMoveEvent(TQMouseEvent *e)
{
- if (e->button() == Qt::LeftButton &&
+ if (e->button() == TQt::LeftButton &&
!m_dragStart.isNull() &&
(e->pos() - m_dragStart).manhattanLength() >
TDEGlobalSettings::dndEventDelay())
@@ -186,7 +186,7 @@ void AppletWidget::mouseReleaseEvent(TQMouseEvent *e)
void AppletWidget::mouseDoubleClickEvent(TQMouseEvent *e)
{
- if (!e->button() == Qt::LeftButton)
+ if (!e->button() == TQt::LeftButton)
{
AppletItem::mouseDoubleClickEvent(e);
return;
@@ -254,16 +254,16 @@ AddAppletDialog::AddAppletDialog(ContainerArea* cArea,
m_mainWidget->appletInstall->setGuiItem(addGuiItem);
m_mainWidget->closeButton->setGuiItem(KStdGuiItem::close());
- connect(m_mainWidget->appletSearch, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(delayedSearch()));
- connect(m_searchDelay, TQT_SIGNAL(timeout()), this, TQT_SLOT(search()));
- connect(m_mainWidget->appletFilter, TQT_SIGNAL(activated(int)), this, TQT_SLOT(filter(int)));
- connect(m_mainWidget->appletInstall, TQT_SIGNAL(clicked()), this, TQT_SLOT(addCurrentApplet()));
- connect(m_mainWidget->closeButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(close()));
+ connect(m_mainWidget->appletSearch, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(delayedSearch()));
+ connect(m_searchDelay, TQ_SIGNAL(timeout()), this, TQ_SLOT(search()));
+ connect(m_mainWidget->appletFilter, TQ_SIGNAL(activated(int)), this, TQ_SLOT(filter(int)));
+ connect(m_mainWidget->appletInstall, TQ_SIGNAL(clicked()), this, TQ_SLOT(addCurrentApplet()));
+ connect(m_mainWidget->closeButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(close()));
m_selectedType = AppletInfo::Undefined;
m_appletBox = 0;
- TQTimer::singleShot(0, this, TQT_SLOT(populateApplets()));
+ TQTimer::singleShot(0, this, TQ_SLOT(populateApplets()));
}
void AddAppletDialog::updateInsertionPoint()
@@ -303,9 +303,9 @@ void AddAppletDialog::resizeAppletView()
bool AddAppletDialog::eventFilter(TQObject *o, TQEvent *e)
{
if (e->type() == TQEvent::Resize)
- TQTimer::singleShot(0, this, TQT_SLOT(resizeAppletView()));
+ TQTimer::singleShot(0, this, TQ_SLOT(resizeAppletView()));
- return TQT_TQOBJECT(this)->TQObject::eventFilter(o, e);
+ return this->TQObject::eventFilter(o, e);
}
void AddAppletDialog::populateApplets()
@@ -372,10 +372,10 @@ void AddAppletDialog::populateApplets()
setTabOrder(prevTabWidget, itemWidget);
prevTabWidget = itemWidget;
- connect(itemWidget, TQT_SIGNAL(clicked(AppletWidget*)),
- this, TQT_SLOT(selectApplet(AppletWidget*)));
- connect(itemWidget, TQT_SIGNAL(doubleClicked(AppletWidget*)),
- this, TQT_SLOT(addApplet(AppletWidget*)));
+ connect(itemWidget, TQ_SIGNAL(clicked(AppletWidget*)),
+ this, TQ_SLOT(selectApplet(AppletWidget*)));
+ connect(itemWidget, TQ_SIGNAL(doubleClicked(AppletWidget*)),
+ this, TQ_SLOT(addApplet(AppletWidget*)));
if (m_closing)
{
@@ -518,7 +518,7 @@ void AddAppletDialog::search()
}
}
- TQTimer::singleShot(0, this, TQT_SLOT(resizeAppletView()));
+ TQTimer::singleShot(0, this, TQ_SLOT(resizeAppletView()));
}
void AddAppletDialog::filter(int i)
diff --git a/kicker/kicker/ui/addapplet.h b/kicker/kicker/ui/addapplet.h
index bc2763f0b..c62b2b2ec 100644
--- a/kicker/kicker/ui/addapplet.h
+++ b/kicker/kicker/ui/addapplet.h
@@ -41,7 +41,7 @@ class TQTimer;
class AddAppletDialog : public KDialogBase
{
- Q_OBJECT
+ TQ_OBJECT
public:
AddAppletDialog(ContainerArea* cArea, TQWidget* parent, const char* name);
diff --git a/kicker/kicker/ui/addapplet_mnu.cpp b/kicker/kicker/ui/addapplet_mnu.cpp
index 6d5c4482f..f68159b98 100644
--- a/kicker/kicker/ui/addapplet_mnu.cpp
+++ b/kicker/kicker/ui/addapplet_mnu.cpp
@@ -33,8 +33,8 @@ PanelAddAppletMenu::PanelAddAppletMenu(ContainerArea* cArea, TQWidget *parent, c
: TQPopupMenu(parent, name), containerArea(cArea)
{
setCheckable(true);
- connect(this, TQT_SIGNAL(activated(int)), TQT_SLOT(slotExec(int)));
- connect(this, TQT_SIGNAL(aboutToShow()), TQT_SLOT(slotAboutToShow()));
+ connect(this, TQ_SIGNAL(activated(int)), TQ_SLOT(slotExec(int)));
+ connect(this, TQ_SIGNAL(aboutToShow()), TQ_SLOT(slotAboutToShow()));
}
void PanelAddAppletMenu::slotAboutToShow()
diff --git a/kicker/kicker/ui/addapplet_mnu.h b/kicker/kicker/ui/addapplet_mnu.h
index 79c539687..dfe15bbeb 100644
--- a/kicker/kicker/ui/addapplet_mnu.h
+++ b/kicker/kicker/ui/addapplet_mnu.h
@@ -33,7 +33,7 @@ class ContainerArea;
class PanelAddAppletMenu : public TQPopupMenu
{
- Q_OBJECT
+ TQ_OBJECT
public:
PanelAddAppletMenu(ContainerArea *cArea, TQWidget *parent=0, const char *name=0);
diff --git a/kicker/kicker/ui/addappletvisualfeedback.cpp b/kicker/kicker/ui/addappletvisualfeedback.cpp
index 62ff12675..dd6f04135 100644
--- a/kicker/kicker/ui/addappletvisualfeedback.cpp
+++ b/kicker/kicker/ui/addappletvisualfeedback.cpp
@@ -54,9 +54,9 @@ AddAppletVisualFeedback::AddAppletVisualFeedback(AppletWidget* widget,
m_moveTimer(0, "m_moveTimer"),
m_dirty(false)
{
- setFocusPolicy(TQ_NoFocus);
+ setFocusPolicy(TQWidget::NoFocus);
setBackgroundMode(NoBackground);
- connect(&m_moveTimer, TQT_SIGNAL(timeout()), TQT_SLOT(swoopCloser()));
+ connect(&m_moveTimer, TQ_SIGNAL(timeout()), TQ_SLOT(swoopCloser()));
TQString m = "<qt><h3>" + i18n("%1 Added").arg(widget->info().name());
@@ -109,10 +109,10 @@ void AddAppletVisualFeedback::makeMask()
{
TQPainter maskPainter(&m_mask);
- m_mask.fill(Qt::black);
+ m_mask.fill(TQt::black);
- maskPainter.setBrush(Qt::white);
- maskPainter.setPen(Qt::white);
+ maskPainter.setBrush(TQt::white);
+ maskPainter.setPen(TQt::white);
maskPainter.drawRoundRect(m_mask.rect(), 1600 / m_mask.rect().width(),
1600 / m_mask.rect().height());
setMask(m_mask);
@@ -156,7 +156,7 @@ void AddAppletVisualFeedback::displayInternal()
// draw background
TQPainter bufferPainter(&m_pixmap);
- bufferPainter.setPen(Qt::black);
+ bufferPainter.setPen(TQt::black);
bufferPainter.setBrush(colorGroup().background());
bufferPainter.drawRoundRect(0, 0, width, height,
1600 / width, 1600 / height);
@@ -218,7 +218,7 @@ void AddAppletVisualFeedback::swoopCloser()
{
m_moveTimer.stop();
displayInternal();
- TQTimer::singleShot(2000, this, TQT_SLOT(deleteLater()));
+ TQTimer::singleShot(2000, this, TQ_SLOT(deleteLater()));
}
}
diff --git a/kicker/kicker/ui/addappletvisualfeedback.h b/kicker/kicker/ui/addappletvisualfeedback.h
index dc660bff1..d2e3da5e6 100644
--- a/kicker/kicker/ui/addappletvisualfeedback.h
+++ b/kicker/kicker/ui/addappletvisualfeedback.h
@@ -40,7 +40,7 @@ class TQTimer;
class AddAppletVisualFeedback : TQWidget
{
- Q_OBJECT
+ TQ_OBJECT
public:
AddAppletVisualFeedback(AppletWidget* parent,
diff --git a/kicker/kicker/ui/addbutton_mnu.h b/kicker/kicker/ui/addbutton_mnu.h
index 209e7e9a3..1a19b9480 100644
--- a/kicker/kicker/ui/addbutton_mnu.h
+++ b/kicker/kicker/ui/addbutton_mnu.h
@@ -30,7 +30,7 @@ class ContainerArea;
class PanelAddButtonMenu : public PanelServiceMenu
{
- Q_OBJECT
+ TQ_OBJECT
public:
PanelAddButtonMenu(ContainerArea* cArea, const TQString & label, const TQString & relPath,
diff --git a/kicker/kicker/ui/addextension_mnu.cpp b/kicker/kicker/ui/addextension_mnu.cpp
index b22187443..c0eda09ab 100644
--- a/kicker/kicker/ui/addextension_mnu.cpp
+++ b/kicker/kicker/ui/addextension_mnu.cpp
@@ -31,8 +31,8 @@ PanelAddExtensionMenu::PanelAddExtensionMenu(TQWidget *parent, const char *name)
: TQPopupMenu(parent, name)
{
setCheckable(true);
- connect(this, TQT_SIGNAL(activated(int)), TQT_SLOT(slotExec(int)));
- connect(this, TQT_SIGNAL(aboutToShow()), TQT_SLOT(slotAboutToShow()));
+ connect(this, TQ_SIGNAL(activated(int)), TQ_SLOT(slotExec(int)));
+ connect(this, TQ_SIGNAL(aboutToShow()), TQ_SLOT(slotAboutToShow()));
}
void PanelAddExtensionMenu::slotAboutToShow()
diff --git a/kicker/kicker/ui/addextension_mnu.h b/kicker/kicker/ui/addextension_mnu.h
index 76163250f..f3be54c1f 100644
--- a/kicker/kicker/ui/addextension_mnu.h
+++ b/kicker/kicker/ui/addextension_mnu.h
@@ -31,7 +31,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
class PanelAddExtensionMenu : public TQPopupMenu
{
- Q_OBJECT
+ TQ_OBJECT
public:
PanelAddExtensionMenu(TQWidget *parent=0, const char *name=0);
diff --git a/kicker/kicker/ui/appletop_mnu.cpp b/kicker/kicker/ui/appletop_mnu.cpp
index a037909b6..740260d7f 100644
--- a/kicker/kicker/ui/appletop_mnu.cpp
+++ b/kicker/kicker/ui/appletop_mnu.cpp
@@ -169,10 +169,10 @@ PanelAppletOpMenu::PanelAppletOpMenu(int actions, TQPopupMenu *opMenu, const TQP
}
if (KickerSettings::legacyKMenu())
-// insertItem(SmallIcon("kickoff"), i18n("Switch to Kickoff Menu Style"), this, TQT_SLOT(toggleLegacy()));
- insertItem(SmallIcon("launch"), i18n("Switch to Kickoff Menu Style"), this, TQT_SLOT(toggleLegacy()));
+// insertItem(SmallIcon("kickoff"), i18n("Switch to Kickoff Menu Style"), this, TQ_SLOT(toggleLegacy()));
+ insertItem(SmallIcon("launch"), i18n("Switch to Kickoff Menu Style"), this, TQ_SLOT(toggleLegacy()));
else
- insertItem(SmallIcon("about_kde"), i18n("Switch to Trinity Classic Menu Style"), this, TQT_SLOT(toggleLegacy()));
+ insertItem(SmallIcon("about_kde"), i18n("Switch to Trinity Classic Menu Style"), this, TQ_SLOT(toggleLegacy()));
}
if ((actions & PanelAppletOpMenu::KMenuEditor) && kapp->authorizeTDEAction("menuedit"))
@@ -213,7 +213,7 @@ PanelAppletOpMenu::PanelAppletOpMenu(int actions, TQPopupMenu *opMenu, const TQP
void PanelAppletOpMenu::keyPressEvent(TQKeyEvent* e)
{
- if (e->key() == Qt::Key_Escape)
+ if (e->key() == TQt::Key_Escape)
{
emit escapePressed();
}
diff --git a/kicker/kicker/ui/appletop_mnu.h b/kicker/kicker/ui/appletop_mnu.h
index 35e10be3c..ae058cea1 100644
--- a/kicker/kicker/ui/appletop_mnu.h
+++ b/kicker/kicker/ui/appletop_mnu.h
@@ -31,7 +31,7 @@ class AppletInfo;
// The button operations menu (usually right click)
class PanelAppletOpMenu : public TQPopupMenu
{
-Q_OBJECT
+TQ_OBJECT
public:
enum OpButton{Move = 9900, Remove = 9901, Help = 9902, About = 9903, Preferences = 9904, ReportBug = 9905 };
diff --git a/kicker/kicker/ui/appletview.ui b/kicker/kicker/ui/appletview.ui
index 5d92dab89..e61575a72 100644
--- a/kicker/kicker/ui/appletview.ui
+++ b/kicker/kicker/ui/appletview.ui
@@ -198,8 +198,6 @@
<layoutdefaults spacing="6" margin="11"/>
<includes>
<include location="global" impldecl="in implementation">kpushbutton.h</include>
+ <include location="global" impldecl="in implementation">tqscrollview.h</include>
</includes>
-<includehints>
- <includehint>tqscrollview.h</includehint>
-</includehints>
</UI>
diff --git a/kicker/kicker/ui/appletwidget.h b/kicker/kicker/ui/appletwidget.h
index d0bb9e885..e0a0b485c 100644
--- a/kicker/kicker/ui/appletwidget.h
+++ b/kicker/kicker/ui/appletwidget.h
@@ -36,7 +36,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
class AppletWidget: public AppletItem
{
- Q_OBJECT
+ TQ_OBJECT
public:
typedef TQValueList<AppletWidget*> List;
diff --git a/kicker/kicker/ui/browser_dlg.cpp b/kicker/kicker/ui/browser_dlg.cpp
index 0e98054d8..27eb0def5 100644
--- a/kicker/kicker/ui/browser_dlg.cpp
+++ b/kicker/kicker/ui/browser_dlg.cpp
@@ -55,7 +55,7 @@ PanelBrowserDialog::PanelBrowserDialog( const TQString& path, const TQString &ic
hbox1->setSpacing( KDialog::spacingHint() );
TQLabel *label2 = new TQLabel( i18n ( "Path:" ), hbox1 );
pathInput = new KLineEdit( hbox1 );
- connect( pathInput, TQT_SIGNAL( textChanged ( const TQString & )), this, TQT_SLOT( slotPathChanged( const TQString & )));
+ connect( pathInput, TQ_SIGNAL( textChanged ( const TQString & )), this, TQ_SLOT( slotPathChanged( const TQString & )));
pathInput->setText( path );
pathInput->setFocus();
@@ -69,7 +69,7 @@ PanelBrowserDialog::PanelBrowserDialog( const TQString& path, const TQString &ic
else
iconBtn->setIcon( icon );
- connect( browseBtn, TQT_SIGNAL( clicked() ), this, TQT_SLOT( browse() ) );
+ connect( browseBtn, TQ_SIGNAL( clicked() ), this, TQ_SLOT( browse() ) );
}
PanelBrowserDialog::~PanelBrowserDialog()
diff --git a/kicker/kicker/ui/browser_dlg.h b/kicker/kicker/ui/browser_dlg.h
index d1b3b623d..8aad531a2 100644
--- a/kicker/kicker/ui/browser_dlg.h
+++ b/kicker/kicker/ui/browser_dlg.h
@@ -31,7 +31,7 @@ class KLineEdit;
class PanelBrowserDialog : public KDialogBase
{
- Q_OBJECT
+ TQ_OBJECT
public:
PanelBrowserDialog( const TQString &path = TQString::null, const TQString &icon = TQString::null, TQWidget *parent = 0, const char *name = 0 );
diff --git a/kicker/kicker/ui/browser_mnu.cpp b/kicker/kicker/ui/browser_mnu.cpp
index c5b76569c..63ea58f1b 100644
--- a/kicker/kicker/ui/browser_mnu.cpp
+++ b/kicker/kicker/ui/browser_mnu.cpp
@@ -64,12 +64,12 @@ PanelBrowserMenu::PanelBrowserMenu(TQString path, TQWidget *parent, const char *
// we are not interested for dirty events on files inside the
// directory (see slotClearIfNeeded)
- connect( &_dirWatch, TQT_SIGNAL(dirty(const TQString&)),
- this, TQT_SLOT(slotClearIfNeeded(const TQString&)) );
- connect( &_dirWatch, TQT_SIGNAL(created(const TQString&)),
- this, TQT_SLOT(slotClear()) );
- connect( &_dirWatch, TQT_SIGNAL(deleted(const TQString&)),
- this, TQT_SLOT(slotClear()) );
+ connect( &_dirWatch, TQ_SIGNAL(dirty(const TQString&)),
+ this, TQ_SLOT(slotClearIfNeeded(const TQString&)) );
+ connect( &_dirWatch, TQ_SIGNAL(created(const TQString&)),
+ this, TQ_SLOT(slotClear()) );
+ connect( &_dirWatch, TQ_SIGNAL(deleted(const TQString&)),
+ this, TQ_SLOT(slotClear()) );
kdDebug() << "PanelBrowserMenu Constructor " << path << endl;
}
@@ -151,9 +151,9 @@ void PanelBrowserMenu::initialize()
insertTitle(path());
TDEConfig *c = TDEGlobal::config();
c->setGroup("menus");
- insertItem(CICON("kfm"), i18n("Open in File Manager"), this, TQT_SLOT(slotOpenFileManager()));
+ insertItem(CICON("kfm"), i18n("Open in File Manager"), this, TQ_SLOT(slotOpenFileManager()));
if (kapp->authorize("shell_access") && KickerSettings::showOpenInTerminal())
- insertItem(CICON("terminal"), i18n("Open in Terminal"), this, TQT_SLOT(slotOpenTerminal()));
+ insertItem(CICON("terminal"), i18n("Open in Terminal"), this, TQ_SLOT(slotOpenTerminal()));
insertSeparator();
}
@@ -334,7 +334,7 @@ void PanelBrowserMenu::initialize()
if(!_mimecheckTimer)
_mimecheckTimer = new TQTimer(this, "_mimecheckTimer");
- connect(_mimecheckTimer, TQT_SIGNAL(timeout()), TQT_SLOT(slotMimeCheck()));
+ connect(_mimecheckTimer, TQ_SIGNAL(timeout()), TQ_SLOT(slotMimeCheck()));
_mimecheckTimer->start(0);
}
}
@@ -380,7 +380,7 @@ void PanelBrowserMenu::mouseMoveEvent(TQMouseEvent *e)
{
TQPopupMenu::mouseMoveEvent(e);
- if (!(e->state() & Qt::LeftButton)) return;
+ if (!(e->state() & TQt::LeftButton)) return;
if(_lastpress == TQPoint(-1, -1)) return;
// DND delay
@@ -398,7 +398,7 @@ void PanelBrowserMenu::mouseMoveEvent(TQMouseEvent *e)
url.setPath(path() + "/" + _filemap[id]);
KURL::List files(url);
KURLDrag *d = new KURLDrag(files, this);
- connect(d, TQT_SIGNAL(destroyed()), this, TQT_SLOT(slotDragObjectDestroyed()));
+ connect(d, TQ_SIGNAL(destroyed()), this, TQ_SLOT(slotDragObjectDestroyed()));
d->setPixmap(iconSet(id)->pixmap());
d->drag();
}
@@ -422,7 +422,7 @@ void PanelBrowserMenu::dragEnterEvent( TQDragEnterEvent *ev )
void PanelBrowserMenu::dragMoveEvent(TQDragMoveEvent *ev)
{
- TQMouseEvent mev(TQEvent::MouseMove, ev->pos(), Qt::NoButton, Qt::LeftButton);
+ TQMouseEvent mev(TQEvent::MouseMove, ev->pos(), TQt::NoButton, TQt::LeftButton);
TQPopupMenu::mouseMoveEvent(&mev);
}
diff --git a/kicker/kicker/ui/browser_mnu.h b/kicker/kicker/ui/browser_mnu.h
index 38f9b9690..1359e855e 100644
--- a/kicker/kicker/ui/browser_mnu.h
+++ b/kicker/kicker/ui/browser_mnu.h
@@ -31,7 +31,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
class PanelBrowserMenu : public KPanelMenu
{
- Q_OBJECT
+ TQ_OBJECT
public:
PanelBrowserMenu(TQString path, TQWidget *parent = 0, const char *name = 0, int startid = 0);
diff --git a/kicker/kicker/ui/clicklineedit.h b/kicker/kicker/ui/clicklineedit.h
index 85efcada8..22dc8f904 100644
--- a/kicker/kicker/ui/clicklineedit.h
+++ b/kicker/kicker/ui/clicklineedit.h
@@ -35,7 +35,7 @@ namespace KPIM {
*/
class KDE_EXPORT ClickLineEdit : public KLineEdit
{
- Q_OBJECT
+ TQ_OBJECT
public:
ClickLineEdit( TQWidget *parent, const TQString &msg = TQString::null, const char* name = 0 );
~ClickLineEdit();
diff --git a/kicker/kicker/ui/client_mnu.cpp b/kicker/kicker/ui/client_mnu.cpp
index 0ad2107d1..8a69f0749 100644
--- a/kicker/kicker/ui/client_mnu.cpp
+++ b/kicker/kicker/ui/client_mnu.cpp
@@ -46,13 +46,13 @@ void KickerClientMenu::clear()
void KickerClientMenu::insertItem( TQPixmap icon, TQString text, int id )
{
- int globalid = TQPopupMenu::insertItem( icon, text, this, TQT_SLOT( slotActivated(int) ) );
+ int globalid = TQPopupMenu::insertItem( icon, text, this, TQ_SLOT( slotActivated(int) ) );
setItemParameter( globalid, id );
}
void KickerClientMenu::insertItem( TQString text, int id )
{
- int globalid = TQPopupMenu::insertItem( text, this, TQT_SLOT( slotActivated(int) ) );
+ int globalid = TQPopupMenu::insertItem( text, this, TQ_SLOT( slotActivated(int) ) );
setItemParameter( globalid, id );
}
diff --git a/kicker/kicker/ui/client_mnu.h b/kicker/kicker/ui/client_mnu.h
index 272f6364f..c1884469d 100644
--- a/kicker/kicker/ui/client_mnu.h
+++ b/kicker/kicker/ui/client_mnu.h
@@ -40,7 +40,7 @@ class PanelKMenu;
*/
class KickerClientMenu : public TQPopupMenu, DCOPObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
KickerClientMenu( TQWidget *parent=0, const char *name=0);
~KickerClientMenu();
diff --git a/kicker/kicker/ui/exe_dlg.cpp b/kicker/kicker/ui/exe_dlg.cpp
index 07caa2b55..6861ba988 100644
--- a/kicker/kicker/ui/exe_dlg.cpp
+++ b/kicker/kicker/ui/exe_dlg.cpp
@@ -68,14 +68,14 @@ PanelExeDialog::PanelExeDialog(const TQString& title, const TQString& descriptio
updateIcon();
- connect(ui->m_exec, TQT_SIGNAL(urlSelected(const TQString &)),
- this, TQT_SLOT(slotSelect(const TQString &)));
- connect(ui->m_exec, TQT_SIGNAL(textChanged(const TQString &)),
- this, TQT_SLOT(slotTextChanged(const TQString &)));
- connect(ui->m_exec, TQT_SIGNAL(returnPressed()),
- this, TQT_SLOT(slotReturnPressed()));
- connect(ui->m_icon, TQT_SIGNAL(iconChanged(TQString)),
- this, TQT_SLOT(slotIconChanged(TQString)));
+ connect(ui->m_exec, TQ_SIGNAL(urlSelected(const TQString &)),
+ this, TQ_SLOT(slotSelect(const TQString &)));
+ connect(ui->m_exec, TQ_SIGNAL(textChanged(const TQString &)),
+ this, TQ_SLOT(slotTextChanged(const TQString &)));
+ connect(ui->m_exec, TQ_SIGNAL(returnPressed()),
+ this, TQ_SLOT(slotReturnPressed()));
+ connect(ui->m_icon, TQ_SIGNAL(iconChanged(TQString)),
+ this, TQ_SLOT(slotIconChanged(TQString)));
// leave decent space for the commandline
resize(sizeHint().width() > 300 ? sizeHint().width() : 300,
diff --git a/kicker/kicker/ui/exe_dlg.h b/kicker/kicker/ui/exe_dlg.h
index ef96fe9d0..669e98a61 100644
--- a/kicker/kicker/ui/exe_dlg.h
+++ b/kicker/kicker/ui/exe_dlg.h
@@ -29,7 +29,7 @@ class NonKDEButtonSettings;
class PanelExeDialog : public KDialogBase
{
- Q_OBJECT
+ TQ_OBJECT
public:
PanelExeDialog(const TQString& title, const TQString& description,
const TQString &path, const TQString &pixmap=TQString::null,
diff --git a/kicker/kicker/ui/flipscrollview.cpp b/kicker/kicker/ui/flipscrollview.cpp
index ae96ebcaa..e2e19d406 100644
--- a/kicker/kicker/ui/flipscrollview.cpp
+++ b/kicker/kicker/ui/flipscrollview.cpp
@@ -101,20 +101,20 @@ FlipScrollView::FlipScrollView( TQWidget * parent, const char * name )
addChild( mRightView );
mTimer = new TQTimer( this, "mTimer" );
- connect( mTimer, TQT_SIGNAL( timeout() ), TQT_SLOT( slotScrollTimer() ) );
-
- connect( mLeftView, TQT_SIGNAL( startService(KService::Ptr) ),
- TQT_SIGNAL( startService(KService::Ptr) ) );
- connect( mLeftView, TQT_SIGNAL( startURL(const TQString& ) ),
- TQT_SIGNAL( startURL(const TQString& ) ) );
- connect( mLeftView, TQT_SIGNAL( rightButtonPressed(TQListViewItem*,const TQPoint&,int) ),
- TQT_SIGNAL( rightButtonPressed(TQListViewItem*,const TQPoint&,int) ) );
- connect( mRightView, TQT_SIGNAL( startService(KService::Ptr) ),
- TQT_SIGNAL( startService(KService::Ptr) ) );
- connect( mRightView, TQT_SIGNAL( startURL(const TQString& ) ),
- TQT_SIGNAL( startURL(const TQString& ) ) );
- connect( mRightView, TQT_SIGNAL( rightButtonPressed(TQListViewItem*,const TQPoint&,int) ),
- TQT_SIGNAL( rightButtonPressed(TQListViewItem*,const TQPoint&,int) ) );
+ connect( mTimer, TQ_SIGNAL( timeout() ), TQ_SLOT( slotScrollTimer() ) );
+
+ connect( mLeftView, TQ_SIGNAL( startService(KService::Ptr) ),
+ TQ_SIGNAL( startService(KService::Ptr) ) );
+ connect( mLeftView, TQ_SIGNAL( startURL(const TQString& ) ),
+ TQ_SIGNAL( startURL(const TQString& ) ) );
+ connect( mLeftView, TQ_SIGNAL( rightButtonPressed(TQListViewItem*,const TQPoint&,int) ),
+ TQ_SIGNAL( rightButtonPressed(TQListViewItem*,const TQPoint&,int) ) );
+ connect( mRightView, TQ_SIGNAL( startService(KService::Ptr) ),
+ TQ_SIGNAL( startService(KService::Ptr) ) );
+ connect( mRightView, TQ_SIGNAL( startURL(const TQString& ) ),
+ TQ_SIGNAL( startURL(const TQString& ) ) );
+ connect( mRightView, TQ_SIGNAL( rightButtonPressed(TQListViewItem*,const TQPoint&,int) ),
+ TQ_SIGNAL( rightButtonPressed(TQListViewItem*,const TQPoint&,int) ) );
// wild hack to make sure it has correct width
mLeftView->setVScrollBarMode( TQScrollView::AlwaysOn );
@@ -124,7 +124,7 @@ FlipScrollView::FlipScrollView( TQWidget * parent, const char * name )
mBackrow = new BackFrame( this );
mBackrow->resize( 24, 100 );
- connect( mBackrow, TQT_SIGNAL( clicked() ), TQT_SIGNAL( backButtonClicked() ) );
+ connect( mBackrow, TQ_SIGNAL( clicked() ), TQ_SIGNAL( backButtonClicked() ) );
}
ItemView* FlipScrollView::prepareRightMove()
diff --git a/kicker/kicker/ui/flipscrollview.h b/kicker/kicker/ui/flipscrollview.h
index d2de2ab5e..6ba2615b3 100644
--- a/kicker/kicker/ui/flipscrollview.h
+++ b/kicker/kicker/ui/flipscrollview.h
@@ -51,7 +51,7 @@ class ItemView;
class BackFrame : public TQFrame
{
- Q_OBJECT
+ TQ_OBJECT
public:
BackFrame( TQWidget *parent );
@@ -71,7 +71,7 @@ private:
class FlipScrollView : public TQScrollView
{
- Q_OBJECT
+ TQ_OBJECT
public:
enum State{ StoppedLeft, StoppedRight, ScrollingLeft, ScrollingRight };
FlipScrollView( TQWidget * parent = 0, const char * name = 0 );
diff --git a/kicker/kicker/ui/hidebutton.cpp b/kicker/kicker/ui/hidebutton.cpp
index 971679359..3107fe17a 100644
--- a/kicker/kicker/ui/hidebutton.cpp
+++ b/kicker/kicker/ui/hidebutton.cpp
@@ -34,12 +34,12 @@
HideButton::HideButton(TQWidget *parent, const char *name)
: TQButton(parent, name),
m_highlight(false),
- m_arrow(Qt::LeftArrow)
+ m_arrow(TQt::LeftArrow)
{
setBackgroundOrigin(AncestorOrigin);
- connect(kapp, TQT_SIGNAL(settingsChanged(int)), TQT_SLOT(slotSettingsChanged(int)));
- connect(kapp, TQT_SIGNAL(iconChanged(int)), TQT_SLOT(slotIconChanged(int)));
+ connect(kapp, TQ_SIGNAL(settingsChanged(int)), TQ_SLOT(slotSettingsChanged(int)));
+ connect(kapp, TQ_SIGNAL(iconChanged(int)), TQ_SLOT(slotIconChanged(int)));
kapp->addKipcEventMask(KIPC::SettingsChanged);
kapp->addKipcEventMask(KIPC::IconChanged);
@@ -49,22 +49,22 @@ HideButton::HideButton(TQWidget *parent, const char *name)
void HideButton::drawButton(TQPainter *p)
{
- if (m_arrow == Qt::LeftArrow)
+ if (m_arrow == TQt::LeftArrow)
{
p->setPen(colorGroup().mid());
p->drawLine(width()-1, 0, width()-1, height());
}
- else if (m_arrow == Qt::RightArrow)
+ else if (m_arrow == TQt::RightArrow)
{
p->setPen(colorGroup().mid());
p->drawLine(0, 0, 0, height());
}
- else if (m_arrow == Qt::UpArrow)
+ else if (m_arrow == TQt::UpArrow)
{
p->setPen(colorGroup().mid());
p->drawLine(0, height()-1, width(), height()-1);
}
- else if (m_arrow == Qt::DownArrow)
+ else if (m_arrow == TQt::DownArrow)
{
p->setPen(colorGroup().mid());
p->drawLine(0, 0, width(), 0);
@@ -106,24 +106,24 @@ void HideButton::setPixmap(const TQPixmap &pix)
generateIcons();
}
-void HideButton::setArrowType(Qt::ArrowType arrow)
+void HideButton::setArrowType(TQt::ArrowType arrow)
{
m_arrow = arrow;
switch (arrow)
{
- case Qt::LeftArrow:
+ case TQt::LeftArrow:
setPixmap(SmallIcon("1leftarrow"));
break;
- case Qt::RightArrow:
+ case TQt::RightArrow:
setPixmap(SmallIcon("1rightarrow"));
break;
- case Qt::UpArrow:
+ case TQt::UpArrow:
setPixmap(SmallIcon("1uparrow"));
break;
- case Qt::DownArrow:
+ case TQt::DownArrow:
default:
setPixmap(SmallIcon("1downarrow"));
break;
@@ -138,7 +138,7 @@ void HideButton::generateIcons()
}
TQImage image = pixmap()->convertToImage();
- image = image.smoothScale(size() - TQSize(4, 4), TQ_ScaleMin);
+ image = image.smoothScale(size() - TQSize(4, 4), TQImage::ScaleMin);
TDEIconEffect effect;
diff --git a/kicker/kicker/ui/hidebutton.h b/kicker/kicker/ui/hidebutton.h
index c73c25ba7..c8c754857 100644
--- a/kicker/kicker/ui/hidebutton.h
+++ b/kicker/kicker/ui/hidebutton.h
@@ -25,11 +25,11 @@
class HideButton : public TQButton
{
- Q_OBJECT
+ TQ_OBJECT
public:
HideButton(TQWidget *parent, const char *name = 0);
- void setArrowType(Qt::ArrowType arrow);
+ void setArrowType(TQt::ArrowType arrow);
void setPixmap(const TQPixmap &pix);
protected:
@@ -44,7 +44,7 @@ class HideButton : public TQButton
bool m_highlight;
TQPixmap m_normalIcon;
TQPixmap m_activeIcon;
- Qt::ArrowType m_arrow;
+ TQt::ArrowType m_arrow;
protected slots:
void slotSettingsChanged( int category );
diff --git a/kicker/kicker/ui/itemview.cpp b/kicker/kicker/ui/itemview.cpp
index 4ca9acb81..155584ab9 100644
--- a/kicker/kicker/ui/itemview.cpp
+++ b/kicker/kicker/ui/itemview.cpp
@@ -158,12 +158,12 @@ void KMenuItem::setup()
float min_font_size = 7. * TQMAX(1., TDEGlobalSettings::generalFont().pointSizeFloat() / 10.);
const int expected_height = 38;
- description_font_size = TQMAX( pointSize( expected_height * .3, TQT_TQPAINTDEVICE(listView()) ) + KickerSettings::kickoffFontPointSizeOffset(), min_font_size ) ;
- title_font_size = TQMAX( pointSize( expected_height * .25, TQT_TQPAINTDEVICE(listView()) ) + KickerSettings::kickoffFontPointSizeOffset(), min_font_size + 1 );
+ description_font_size = TQMAX( pointSize( expected_height * .3, listView() ) + KickerSettings::kickoffFontPointSizeOffset(), min_font_size ) ;
+ title_font_size = TQMAX( pointSize( expected_height * .25, listView() ) + KickerSettings::kickoffFontPointSizeOffset(), min_font_size + 1 );
//kdDebug() << description_font_size << " " << title_font_size << " " << pointSize( expected_height * .25, listView() ) << endl;
TQListViewItem::setup();
- setHeight( (int)TQMAX( expected_height, pixelSize( title_font_size + description_font_size * 2.3, TQT_TQPAINTDEVICE(listView()))));
+ setHeight( (int)TQMAX( expected_height, pixelSize( title_font_size + description_font_size * 2.3, listView())));
}
void KMenuItem::paintCell(TQPainter* p, const TQColorGroup & cg, int column, int width, int align)
@@ -278,7 +278,7 @@ void KMenuItem::paintCellInter(TQPainter* p, const TQColorGroup & cg, int column
if ( m_description.isEmpty() )
spacing = ( height() - f1h ) / 2;
- int right_triangle_size = pixelSize( 7, TQT_TQPAINTDEVICE(listView()) );
+ int right_triangle_size = pixelSize( 7, listView() );
int right_margin = listView()->verticalScrollBar()->width();
if ( m_has_children )
@@ -531,7 +531,7 @@ void KMenuItemHeader::paintCell(TQPainter* p, const TQColorGroup & cg, int , int
int r = left_margin + margin * 2;
const int min_font_size = 7;
- int title_font_pixelSize = tqRound( pixelSize( TQMAX( pointSize( 12, TQT_TQPAINTDEVICE(listView()) ) + KickerSettings::kickoffFontPointSizeOffset(), min_font_size + 1 ), TQT_TQPAINTDEVICE(listView()) ) );
+ int title_font_pixelSize = tqRound( pixelSize( TQMAX( pointSize( 12, listView() ) + KickerSettings::kickoffFontPointSizeOffset(), min_font_size + 1 ), listView() ) );
TQFont f1 = p->font();
f1.setPixelSize( title_font_pixelSize );
@@ -635,16 +635,16 @@ ItemView::ItemView(TQWidget* parent, const char* name)
setItemMargin(0);
setSorting(-1);
setTreeStepSize(38);
- setFocusPolicy(TQ_NoFocus);
+ setFocusPolicy(TQWidget::NoFocus);
m_lastOne = 0;
m_old_contentY = -1;
- connect(this, TQT_SIGNAL(mouseButtonClicked( int, TQListViewItem*, const TQPoint &, int )),
- TQT_SLOT(slotItemClicked(int, TQListViewItem*, const TQPoint &, int)));
+ connect(this, TQ_SIGNAL(mouseButtonClicked( int, TQListViewItem*, const TQPoint &, int )),
+ TQ_SLOT(slotItemClicked(int, TQListViewItem*, const TQPoint &, int)));
- connect(this, TQT_SIGNAL(returnPressed(TQListViewItem*)), TQT_SLOT(slotItemClicked(TQListViewItem*)));
- connect(this, TQT_SIGNAL(spacePressed(TQListViewItem*)), TQT_SLOT(slotItemClicked(TQListViewItem*)));
+ connect(this, TQ_SIGNAL(returnPressed(TQListViewItem*)), TQ_SLOT(slotItemClicked(TQListViewItem*)));
+ connect(this, TQ_SIGNAL(spacePressed(TQListViewItem*)), TQ_SLOT(slotItemClicked(TQListViewItem*)));
new ItemViewTip( viewport(), this );
}
@@ -944,14 +944,14 @@ void ItemView::contentsMouseMoveEvent(TQMouseEvent *e)
if (m_mouseMoveSelects) {
if(i && i->isEnabled() && !i->isSelected() &&
// FIXME: This is wrong if you drag over the items.
- (e->state() & (Qt::LeftButton|Qt::MidButton|Qt::RightButton)) == 0)
+ (e->state() & (TQt::LeftButton|TQt::MidButton|TQt::RightButton)) == 0)
TDEListView::setSelected(i, true);
else if (!i && selectedItem())
TDEListView::setSelected(selectedItem(), false);
}
if ( link_cursor )
- setCursor( Qt::PointingHandCursor );
+ setCursor( TQt::PointingHandCursor );
else
unsetCursor();
@@ -999,7 +999,7 @@ void ItemView::contentsWheelEvent(TQWheelEvent *e)
if(i && i->isEnabled() && !i->isSelected() &&
// FIXME: This is wrong if you drag over the items.
- (e->state() & (Qt::LeftButton|Qt::MidButton|Qt::RightButton)) == 0)
+ (e->state() & (TQt::LeftButton|TQt::MidButton|TQt::RightButton)) == 0)
TDEListView::setSelected(i, true);
else if (!i && selectedItem())
TDEListView::setSelected(selectedItem(), false);
@@ -1029,7 +1029,7 @@ TQDragObject * ItemView::dragObject()
mask = *pix.mask();
else {
mask.resize(pix.size());
- mask.fill(Qt::color1);
+ mask.fill(TQt::color1);
}
bitBlt( &mask, pix.width()-add.width(), pix.height()-add.height(), add.mask(), 0, 0, add.width(), add.height(), OrROP );
diff --git a/kicker/kicker/ui/itemview.h b/kicker/kicker/ui/itemview.h
index 27807c939..bab0142c2 100644
--- a/kicker/kicker/ui/itemview.h
+++ b/kicker/kicker/ui/itemview.h
@@ -156,7 +156,7 @@ class ItemView : public TDEListView
{
friend class KMenuItem;
- Q_OBJECT
+ TQ_OBJECT
public:
ItemView(TQWidget* parent, const char* name = 0);
diff --git a/kicker/kicker/ui/k_mnu.cpp b/kicker/kicker/ui/k_mnu.cpp
index 4362e91f1..768056473 100644
--- a/kicker/kicker/ui/k_mnu.cpp
+++ b/kicker/kicker/ui/k_mnu.cpp
@@ -52,6 +52,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <tdetoolbarbutton.h>
#include <twin.h>
#include <popupmenutop.h>
+#include <tdeaccel.h>
#include "client_mnu.h"
#include "container_base.h"
@@ -86,8 +87,8 @@ PanelKMenu::PanelKMenu()
disableAutoClear();
actionCollection = new TDEActionCollection(this);
setCaption(i18n("TDE Menu"));
- connect(Kicker::the(), TQT_SIGNAL(configurationChanged()),
- this, TQT_SLOT(configChanged()));
+ connect(Kicker::the(), TQ_SIGNAL(configurationChanged()),
+ this, TQ_SLOT(configChanged()));
DCOPClient *dcopClient = TDEApplication::dcopClient();
dcopClient->connectDCOPSignal(0, "appLauncher",
"serviceStartedByStorageId(TQString,TQString)",
@@ -95,7 +96,7 @@ PanelKMenu::PanelKMenu()
"slotServiceStartedByStorageId(TQString,TQString)",
false);
displayRepairTimer = new TQTimer( this );
- connect( displayRepairTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(repairDisplay()) );
+ connect( displayRepairTimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(repairDisplay()) );
}
PanelKMenu::~PanelKMenu()
@@ -121,15 +122,12 @@ void PanelKMenu::hideMenu()
{
hide();
-#ifdef USE_QT4
- // The hacks below aren't needed any more because Qt4 supports true transparency for the fading logout screen
-#else // USE_QT4
// Try to redraw the area under the menu
// Qt makes this surprisingly difficult to do in a timely fashion!
while (isShown() == true)
kapp->eventLoop()->processEvents(1000);
TQTimer *windowtimer = new TQTimer( this );
- connect( windowtimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(windowClearTimeout()) );
+ connect( windowtimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(windowClearTimeout()) );
windowTimerTimedOut = false;
windowtimer->start( 0, TRUE ); // Wait for all window system events to be processed
while (windowTimerTimedOut == false)
@@ -142,12 +140,11 @@ void PanelKMenu::hideMenu()
// thereby removing a bad shutdown screen artifact while still providing
// a somewhat snappy user interface.
TQTimer *delaytimer = new TQTimer( this );
- connect( delaytimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(windowClearTimeout()) );
+ connect( delaytimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(windowClearTimeout()) );
windowTimerTimedOut = false;
delaytimer->start( 100, TRUE ); // Wait for 100 milliseconds
while (windowTimerTimedOut == false)
kapp->eventLoop()->processEvents(TQEventLoop::ExcludeUserInput, 1000);
-#endif // USE_QT4
}
void PanelKMenu::windowClearTimeout()
@@ -245,13 +242,15 @@ void PanelKMenu::initialize()
return;
}
+ TDEAccel *accel = new TDEAccel(this);
+
if (loadSidePixmap())
{
// in case we've been through here before, let's disconnect
- disconnect(kapp, TQT_SIGNAL(tdedisplayPaletteChanged()),
- this, TQT_SLOT(paletteChanged()));
- connect(kapp, TQT_SIGNAL(tdedisplayPaletteChanged()),
- this, TQT_SLOT(paletteChanged()));
+ disconnect(kapp, TQ_SIGNAL(tdedisplayPaletteChanged()),
+ this, TQ_SLOT(paletteChanged()));
+ connect(kapp, TQ_SIGNAL(tdedisplayPaletteChanged()),
+ this, TQ_SLOT(paletteChanged()));
}
else
{
@@ -265,14 +264,36 @@ void PanelKMenu::initialize()
if (KickerSettings::useSearchBar()) {
TQHBox* hbox = new TQHBox( this );
TDEToolBarButton *clearButton = new TDEToolBarButton( "locationbar_erase", 0, hbox );
- searchEdit = new KPIM::ClickLineEdit(hbox, " "+i18n("Press '/' to search..."));
- hbox->setFocusPolicy(TQ_StrongFocus);
+
+ TQStringList cuts = TQStringList::split(";", KickerSettings::searchShortcut());
+ TQString placeholder;
+ switch( cuts.count() )
+ {
+ case 0:
+ placeholder = i18n(" Click here to search...");
+ break;
+
+ case 1:
+ placeholder = i18n(" Press '%1' to search...").arg(cuts[0]);
+ break;
+
+ case 2:
+ placeholder = i18n(" Press '%1' or '%2' to search...").arg(cuts[0], cuts[1]);
+ break;
+ }
+ searchEdit = new KPIM::ClickLineEdit( hbox, placeholder );
+
+ hbox->setFocusPolicy(TQWidget::StrongFocus);
hbox->setFocusProxy(searchEdit);
hbox->setSpacing( 3 );
- connect(clearButton, TQT_SIGNAL(clicked()), searchEdit, TQT_SLOT(clear()));
- connect(this, TQT_SIGNAL(aboutToHide()), this, TQT_SLOT(slotClearSearch()));
- connect(searchEdit, TQT_SIGNAL(textChanged(const TQString&)),
- this, TQT_SLOT( slotUpdateSearch( const TQString&)));
+ connect(clearButton, TQ_SIGNAL(clicked()), searchEdit, TQ_SLOT(clear()));
+ connect(this, TQ_SIGNAL(aboutToHide()), this, TQ_SLOT(slotClearSearch()));
+ connect(searchEdit, TQ_SIGNAL(textChanged(const TQString&)),
+ this, TQ_SLOT( slotUpdateSearch( const TQString&)));
+ accel->insert("search", i18n("Search"), i18n("TDE Menu search"),
+ TDEShortcut(KickerSettings::searchShortcut()),
+ this, TQ_SLOT(slotFocusSearch()));
+
insertItem(hbox, searchLineID, 0);
} else {
searchEdit = NULL;
@@ -369,7 +390,7 @@ void PanelKMenu::initialize()
insertItem(KickerLib::menuIconSet("system-run"),
i18n("Run Command..."),
this,
- TQT_SLOT( slotRunCommand()));
+ TQ_SLOT( slotRunCommand()));
insertSeparator();
}
@@ -377,8 +398,8 @@ void PanelKMenu::initialize()
{
sessionsMenu = new TQPopupMenu( this );
insertItem(KickerLib::menuIconSet("switchuser"), i18n("Switch User"), sessionsMenu);
- connect( sessionsMenu, TQT_SIGNAL(aboutToShow()), TQT_SLOT(slotPopulateSessions()) );
- connect( sessionsMenu, TQT_SIGNAL(activated(int)), TQT_SLOT(slotSessionActivated(int)) );
+ connect( sessionsMenu, TQ_SIGNAL(aboutToShow()), TQ_SLOT(slotPopulateSessions()) );
+ connect( sessionsMenu, TQ_SIGNAL(activated(int)), TQ_SLOT(slotSessionActivated(int)) );
}
/*
@@ -388,17 +409,17 @@ void PanelKMenu::initialize()
ksmserver.setGroup("General");
if (ksmserver.readEntry( "loginMode" ) == "restoreSavedSession")
{
- insertItem(KickerLib::menuIconSet("document-save"), i18n("Save Session"), this, TQT_SLOT(slotSaveSession()));
+ insertItem(KickerLib::menuIconSet("document-save"), i18n("Save Session"), this, TQ_SLOT(slotSaveSession()));
}
if (kapp->authorize("lock_screen"))
{
- insertItem(KickerLib::menuIconSet("system-lock-screen"), i18n("Lock Session"), this, TQT_SLOT(slotLock()));
+ insertItem(KickerLib::menuIconSet("system-lock-screen"), i18n("Lock Session"), this, TQ_SLOT(slotLock()));
}
if (kapp->authorize("logout"))
{
- insertItem(KickerLib::menuIconSet("system-log-out"), i18n("Log Out..."), this, TQT_SLOT(slotLogout()));
+ insertItem(KickerLib::menuIconSet("system-log-out"), i18n("Log Out..."), this, TQ_SLOT(slotLogout()));
}
#if 0
@@ -507,7 +528,7 @@ void PanelKMenu::slotSessionActivated( int ent )
void PanelKMenu::doNewSession( bool lock )
{
int result = KMessageBox::warningContinueCancel(
- TQT_TQWIDGET(kapp->desktop()->screen(kapp->desktop()->screenNumber(this))),
+ kapp->desktop()->screen(kapp->desktop()->screenNumber(this)),
i18n("<p>You have chosen to open another desktop session.<br>"
"The current session will be hidden "
"and a new login screen will be displayed.<br>"
@@ -634,7 +655,7 @@ void PanelKMenu::paintEvent(TQPaintEvent * e)
TQPainter p(this);
p.setClipRegion(e->region());
- style().tqdrawPrimitive( TQStyle::PE_PanelPopup, &p,
+ style().drawPrimitive( TQStyle::PE_PanelPopup, &p,
TQRect( 0, 0, width(), height() ),
colorGroup(), TQStyle::Style_Default,
TQStyleOption( frameWidth(), 0 ) );
@@ -705,7 +726,14 @@ void PanelKMenu::slotUpdateSearch(const TQString& searchString)
void PanelKMenu::slotClearSearch()
{
if (searchEdit && searchEdit->text().isEmpty() == false) {
- TQTimer::singleShot(0, searchEdit, TQT_SLOT(clear()));
+ TQTimer::singleShot(0, searchEdit, TQ_SLOT(clear()));
+ }
+}
+
+void PanelKMenu::slotFocusSearch()
+{
+ if (indexOf(searchLineID) >=0 ) {
+ setActiveItem(indexOf(searchLineID));
}
}
@@ -719,12 +747,8 @@ void PanelKMenu::keyPressEvent(TQKeyEvent* e)
// we follow konqueror.
if (!searchEdit) return KPanelMenu::keyPressEvent(e);
- if (e->key() == TQt::Key_Slash && !searchEdit->hasFocus()) {
- if (indexOf(searchLineID) >=0 ) {
- setActiveItem(indexOf(searchLineID));
- }
- }
- else if (e->key() == TQt::Key_Escape && searchEdit->text().isEmpty() == false) {
+
+ if (e->key() == TQt::Key_Escape && searchEdit->text().isEmpty() == false) {
searchEdit->clear();
}
else if (e->key() == TQt::Key_Delete && !searchEdit->hasFocus() &&
diff --git a/kicker/kicker/ui/k_mnu.h b/kicker/kicker/ui/k_mnu.h
index 7c76f55ed..bb2056590 100644
--- a/kicker/kicker/ui/k_mnu.h
+++ b/kicker/kicker/ui/k_mnu.h
@@ -45,7 +45,7 @@ class Panel;
class PanelKMenu : public PanelServiceMenu, public DCOPObject
{
- Q_OBJECT
+ TQ_OBJECT
K_DCOP
k_dcop:
@@ -83,6 +83,7 @@ protected slots:
void slotEditUserContact();
void slotUpdateSearch(const TQString &searchtext);
void slotClearSearch();
+ void slotFocusSearch();
void paletteChanged();
virtual void configChanged();
void updateRecent();
diff --git a/kicker/kicker/ui/k_new_mnu.cpp b/kicker/kicker/ui/k_new_mnu.cpp
index 8ea8e07ca..834086f33 100644
--- a/kicker/kicker/ui/k_new_mnu.cpp
+++ b/kicker/kicker/ui/k_new_mnu.cpp
@@ -21,12 +21,21 @@
******************************************************************/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdlib.h>
#include <sys/types.h>
#include <unistd.h>
#include <dmctl.h>
#include <inttypes.h>
+#ifdef Q_OS_SOLARIS
+#include <sys/statvfs.h>
+#define statfs statvfs
+#endif /* Q_OS_SOLARIS */
+
#include <tqimage.h>
#include <tqpainter.h>
#include <tqstyle.h>
@@ -52,7 +61,7 @@
#include <kdebug.h>
#include <tdeglobal.h>
#include <tdeglobalsettings.h>
-#ifdef __TDE_HAVE_TDEHWLIB
+#ifdef WITH_TDEHWLIB
#include <tdehardwaredevices.h>
#endif
#include <kiconloader.h>
@@ -112,16 +121,6 @@
#include "config.h"
-#ifdef COMPILE_HALBACKEND
-#ifndef NO_QT3_DBUS_SUPPORT
-/* We acknowledge the the dbus API is unstable */
-#define DBUS_API_SUBJECT_TO_CHANGE
-#include <dbus/connection.h>
-#endif // NO_QT3_DBUS_SUPPORT
-
-#include <hal/libhal.h>
-#endif // COMPILE_HALBACKEND
-
#ifdef __NetBSD__
#define statfs statvfs
#endif
@@ -207,15 +206,15 @@ KMenu::KMenu()
m_iconName(TQString()), m_orientation(UnDetermined), m_search_plugin( 0 )
{
setMouseTracking(true);
- connect(&m_sloppyTimer, TQT_SIGNAL(timeout()), TQT_SLOT(slotSloppyTimeout()));
+ connect(&m_sloppyTimer, TQ_SIGNAL(timeout()), TQ_SLOT(slotSloppyTimeout()));
// set the first client id to some arbitrarily large value.
client_id = 10000;
// Don't automatically clear the main menu.
actionCollection = new TDEActionCollection(this);
- connect(Kicker::the(), TQT_SIGNAL(configurationChanged()),
- this, TQT_SLOT(configChanged()));
+ connect(Kicker::the(), TQ_SIGNAL(configurationChanged()),
+ this, TQ_SLOT(configChanged()));
KUser * user = new KUser();
@@ -229,7 +228,7 @@ KMenu::KMenu()
setupUi();
m_userInfo->setBackgroundMode( PaletteBase );
- TQColor userInfoColor = TQApplication::palette().color( TQPalette::Normal, TQColorGroup::Mid );
+ TQColor userInfoColor = TQApplication::palette().color( TQPalette::Active, TQColorGroup::Mid );
if ( tqGray( userInfoColor.rgb() ) > 120 )
userInfoColor = userInfoColor.dark( 200 );
else
@@ -237,7 +236,7 @@ KMenu::KMenu()
m_userInfo->setPaletteForegroundColor( userInfoColor );
m_tabBar = new KickoffTabBar(this, "m_tabBar");
- connect(m_tabBar, TQT_SIGNAL(tabClicked(TQTab*)), TQT_SLOT(tabClicked(TQTab*)));
+ connect(m_tabBar, TQ_SIGNAL(tabClicked(TQTab*)), TQ_SLOT(tabClicked(TQTab*)));
const int tab_icon_size = 32;
@@ -285,8 +284,8 @@ KMenu::KMenu()
m_tabs[LeaveTab]->setIconSet(BarIcon("leave", tab_icon_size));
}
- connect(m_tabBar, TQT_SIGNAL(selected(int)), m_stacker, TQT_SLOT(raiseWidget(int)));
- connect(m_stacker, TQT_SIGNAL(aboutToShow(int)), m_tabBar, TQT_SLOT(setCurrentTab(int)));
+ connect(m_tabBar, TQ_SIGNAL(selected(int)), m_stacker, TQ_SLOT(raiseWidget(int)));
+ connect(m_stacker, TQ_SIGNAL(aboutToShow(int)), m_tabBar, TQ_SLOT(setCurrentTab(int)));
m_favoriteView = new FavoritesItemView (m_stacker, "m_favoriteView");
m_favoriteView->setAcceptDrops(true);
@@ -301,11 +300,11 @@ KMenu::KMenu()
m_browserView = new FlipScrollView(m_stacker, "m_browserView");
m_stacker->addWidget(m_browserView, ApplicationsTab);
- connect( m_browserView, TQT_SIGNAL( backButtonClicked() ), TQT_SLOT( slotGoBack() ) );
+ connect( m_browserView, TQ_SIGNAL( backButtonClicked() ), TQ_SLOT( slotGoBack() ) );
m_exitView = new FlipScrollView(m_stacker, "m_exitView");
m_stacker->addWidget(m_exitView, LeaveTab);
- connect( m_exitView, TQT_SIGNAL( backButtonClicked() ), TQT_SLOT( slotGoExitMainMenu() ) );
+ connect( m_exitView, TQ_SIGNAL( backButtonClicked() ), TQ_SLOT( slotGoExitMainMenu() ) );
m_searchWidget = new TQVBox (m_stacker, "m_searchWidget");
m_searchWidget->setSpacing(0);
@@ -332,7 +331,7 @@ KMenu::KMenu()
m_searchResultsWidget->setItemMargin(4);
// m_searchResultsWidget->setIconSize(16);
m_searchActions = new ItemView (m_searchWidget, "m_searchActions");
- m_searchActions->setFocusPolicy(TQ_NoFocus);
+ m_searchActions->setFocusPolicy(TQWidget::NoFocus);
m_searchActions->setItemMargin(4);
m_searchInternet = new TQListViewItem(m_searchActions, i18n("Search Internet"));
m_searchInternet->setPixmap(0,icon);
@@ -342,40 +341,40 @@ KMenu::KMenu()
m_searchActions->setMaximumHeight(5+m_searchInternet->height());
- connect(m_searchActions, TQT_SIGNAL(clicked(TQListViewItem*)), TQT_SLOT(searchActionClicked(TQListViewItem*)));
- connect(m_searchActions, TQT_SIGNAL(returnPressed(TQListViewItem*)), TQT_SLOT(searchActionClicked(TQListViewItem*)));
- connect(m_searchActions, TQT_SIGNAL(spacePressed(TQListViewItem*)), TQT_SLOT(searchActionClicked(TQListViewItem*)));
+ connect(m_searchActions, TQ_SIGNAL(clicked(TQListViewItem*)), TQ_SLOT(searchActionClicked(TQListViewItem*)));
+ connect(m_searchActions, TQ_SIGNAL(returnPressed(TQListViewItem*)), TQ_SLOT(searchActionClicked(TQListViewItem*)));
+ connect(m_searchActions, TQ_SIGNAL(spacePressed(TQListViewItem*)), TQ_SLOT(searchActionClicked(TQListViewItem*)));
- connect(m_searchResultsWidget, TQT_SIGNAL(startService(KService::Ptr)), TQT_SLOT(slotStartService(KService::Ptr)));
- connect(m_searchResultsWidget, TQT_SIGNAL(startURL(const TQString&)), TQT_SLOT(slotStartURL(const TQString&)));
- connect(m_searchResultsWidget, TQT_SIGNAL(rightButtonPressed( TQListViewItem*, const TQPoint &, int )), TQT_SLOT(slotContextMenuRequested( TQListViewItem*, const TQPoint &, int )));
+ connect(m_searchResultsWidget, TQ_SIGNAL(startService(KService::Ptr)), TQ_SLOT(slotStartService(KService::Ptr)));
+ connect(m_searchResultsWidget, TQ_SIGNAL(startURL(const TQString&)), TQ_SLOT(slotStartURL(const TQString&)));
+ connect(m_searchResultsWidget, TQ_SIGNAL(rightButtonPressed( TQListViewItem*, const TQPoint &, int )), TQ_SLOT(slotContextMenuRequested( TQListViewItem*, const TQPoint &, int )));
- connect(m_recentlyView, TQT_SIGNAL(startService(KService::Ptr)), TQT_SLOT(slotStartService(KService::Ptr)));
- connect(m_recentlyView, TQT_SIGNAL(startURL(const TQString&)), TQT_SLOT(slotStartURL(const TQString&)));
- connect(m_recentlyView, TQT_SIGNAL(rightButtonPressed( TQListViewItem*, const TQPoint &, int )), TQT_SLOT(slotContextMenuRequested( TQListViewItem*, const TQPoint &, int )));
+ connect(m_recentlyView, TQ_SIGNAL(startService(KService::Ptr)), TQ_SLOT(slotStartService(KService::Ptr)));
+ connect(m_recentlyView, TQ_SIGNAL(startURL(const TQString&)), TQ_SLOT(slotStartURL(const TQString&)));
+ connect(m_recentlyView, TQ_SIGNAL(rightButtonPressed( TQListViewItem*, const TQPoint &, int )), TQ_SLOT(slotContextMenuRequested( TQListViewItem*, const TQPoint &, int )));
- connect(m_favoriteView, TQT_SIGNAL(startService(KService::Ptr)), TQT_SLOT(slotStartService(KService::Ptr)));
- connect(m_favoriteView, TQT_SIGNAL(startURL(const TQString&)), TQT_SLOT(slotStartURL(const TQString&)));
- connect(m_favoriteView, TQT_SIGNAL(rightButtonPressed( TQListViewItem*, const TQPoint &, int )), TQT_SLOT(slotContextMenuRequested( TQListViewItem*, const TQPoint &, int )));
- connect(m_favoriteView, TQT_SIGNAL(moved(TQListViewItem*, TQListViewItem*, TQListViewItem*)), TQT_SLOT(slotFavoritesMoved( TQListViewItem*, TQListViewItem*, TQListViewItem* )));
+ connect(m_favoriteView, TQ_SIGNAL(startService(KService::Ptr)), TQ_SLOT(slotStartService(KService::Ptr)));
+ connect(m_favoriteView, TQ_SIGNAL(startURL(const TQString&)), TQ_SLOT(slotStartURL(const TQString&)));
+ connect(m_favoriteView, TQ_SIGNAL(rightButtonPressed( TQListViewItem*, const TQPoint &, int )), TQ_SLOT(slotContextMenuRequested( TQListViewItem*, const TQPoint &, int )));
+ connect(m_favoriteView, TQ_SIGNAL(moved(TQListViewItem*, TQListViewItem*, TQListViewItem*)), TQ_SLOT(slotFavoritesMoved( TQListViewItem*, TQListViewItem*, TQListViewItem* )));
- connect(m_systemView, TQT_SIGNAL(startURL(const TQString&)), TQT_SLOT(slotStartURL(const TQString&)));
- connect(m_systemView, TQT_SIGNAL(startService(KService::Ptr)), TQT_SLOT(slotStartService(KService::Ptr)));
- connect(m_systemView, TQT_SIGNAL(rightButtonPressed( TQListViewItem*, const TQPoint &, int )), TQT_SLOT(slotContextMenuRequested( TQListViewItem*, const TQPoint &, int )));
+ connect(m_systemView, TQ_SIGNAL(startURL(const TQString&)), TQ_SLOT(slotStartURL(const TQString&)));
+ connect(m_systemView, TQ_SIGNAL(startService(KService::Ptr)), TQ_SLOT(slotStartService(KService::Ptr)));
+ connect(m_systemView, TQ_SIGNAL(rightButtonPressed( TQListViewItem*, const TQPoint &, int )), TQ_SLOT(slotContextMenuRequested( TQListViewItem*, const TQPoint &, int )));
- connect(m_browserView, TQT_SIGNAL(startURL(const TQString&)), TQT_SLOT(slotGoSubMenu(const TQString&)));
- connect(m_browserView, TQT_SIGNAL(startService(KService::Ptr)), TQT_SLOT(slotStartService(KService::Ptr)));
- connect(m_browserView, TQT_SIGNAL(rightButtonPressed( TQListViewItem*, const TQPoint &, int )), TQT_SLOT(slotContextMenuRequested( TQListViewItem*, const TQPoint &, int )));
+ connect(m_browserView, TQ_SIGNAL(startURL(const TQString&)), TQ_SLOT(slotGoSubMenu(const TQString&)));
+ connect(m_browserView, TQ_SIGNAL(startService(KService::Ptr)), TQ_SLOT(slotStartService(KService::Ptr)));
+ connect(m_browserView, TQ_SIGNAL(rightButtonPressed( TQListViewItem*, const TQPoint &, int )), TQ_SLOT(slotContextMenuRequested( TQListViewItem*, const TQPoint &, int )));
- connect(m_exitView, TQT_SIGNAL(startURL(const TQString&)), TQT_SLOT(slotStartURL(const TQString&)));
- connect(m_exitView, TQT_SIGNAL(rightButtonPressed( TQListViewItem*, const TQPoint &, int )), TQT_SLOT(slotContextMenuRequested( TQListViewItem*, const TQPoint &, int )));
+ connect(m_exitView, TQ_SIGNAL(startURL(const TQString&)), TQ_SLOT(slotStartURL(const TQString&)));
+ connect(m_exitView, TQ_SIGNAL(rightButtonPressed( TQListViewItem*, const TQPoint &, int )), TQ_SLOT(slotContextMenuRequested( TQListViewItem*, const TQPoint &, int )));
m_kcommand->setDuplicatesEnabled( false );
m_kcommand->setLineEdit(new KLineEdit(m_kcommand, "m_kcommand-lineedit"));
m_kcommand->setCompletionMode( TDEGlobalSettings::CompletionAuto );
- connect(m_kcommand, TQT_SIGNAL(cleared()), TQT_SLOT(clearedHistory()));
- connect(m_kcommand->lineEdit(), TQT_SIGNAL(returnPressed()), TQT_SLOT(searchAccept()));
- connect(m_kcommand->lineEdit(), TQT_SIGNAL(textChanged(const TQString &)), TQT_SLOT(searchChanged(const TQString &)));
+ connect(m_kcommand, TQ_SIGNAL(cleared()), TQ_SLOT(clearedHistory()));
+ connect(m_kcommand->lineEdit(), TQ_SIGNAL(returnPressed()), TQ_SLOT(searchAccept()));
+ connect(m_kcommand->lineEdit(), TQ_SIGNAL(textChanged(const TQString &)), TQ_SLOT(searchChanged(const TQString &)));
// URI Filter meta object...
m_filterData = new KURIFilterData();
@@ -384,14 +383,14 @@ KMenu::KMenu()
categorised_hit_total = new int [num_categories];
input_timer = new TQTimer (this, "input_timer");
- connect( input_timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(doQuery()) );
+ connect( input_timer, TQ_SIGNAL(timeout()), this, TQ_SLOT(doQuery()) );
init_search_timer = new TQTimer (this, "init_search_timer");
- connect( init_search_timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(initSearch()) );
+ connect( init_search_timer, TQ_SIGNAL(timeout()), this, TQ_SLOT(initSearch()) );
init_search_timer->start(2000, true);
- connect( m_favoriteView, TQT_SIGNAL( dropped (TQDropEvent *, TQListViewItem * ) ),
- TQT_SLOT( slotFavDropped( TQDropEvent *, TQListViewItem * ) ) );
+ connect( m_favoriteView, TQ_SIGNAL( dropped (TQDropEvent *, TQListViewItem * ) ),
+ TQ_SLOT( slotFavDropped( TQDropEvent *, TQListViewItem * ) ) );
this->installEventFilter(this);
m_tabBar->installEventFilter(this);
@@ -443,38 +442,6 @@ KMenu::KMenu()
search_tab_top_left.load( locate("data", "kicker/pics/search-tab-top-left.png" ) );
search_tab_top_right.load( locate("data", "kicker/pics/search-tab-top-right.png" ) );
search_tab_top_center.load( locate("data", "kicker/pics/search-tab-top-center.png" ) );
-
-#ifdef COMPILE_HALBACKEND
- m_halCtx = NULL;
- m_halCtx = libhal_ctx_new();
-
- DBusError error;
- dbus_error_init(&error);
- m_dbusConn = dbus_connection_open_private(DBUS_SYSTEM_BUS, &error);
- if (!m_dbusConn) {
- dbus_error_free(&error);
- libhal_ctx_free(m_halCtx);
- m_halCtx = NULL;
- } else {
- dbus_bus_register(m_dbusConn, &error);
- if (dbus_error_is_set(&error)) {
- dbus_error_free(&error);
- libhal_ctx_free(m_halCtx);
- m_dbusConn = NULL;
- m_halCtx = NULL;
- } else {
- libhal_ctx_set_dbus_connection(m_halCtx, m_dbusConn);
- if (!libhal_ctx_init(m_halCtx, &error)) {
- if (dbus_error_is_set(&error)) {
- dbus_error_free(&error);
- }
- libhal_ctx_free(m_halCtx);
- m_dbusConn = NULL;
- m_halCtx = NULL;
- }
- }
- }
-#endif
}
void KMenu::setupUi()
@@ -483,10 +450,10 @@ void KMenu::setupUi()
m_stacker->setGeometry( TQRect( 90, 260, 320, 220 ) );
m_stacker->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)3, 1, 1, m_stacker->sizePolicy().hasHeightForWidth() ) );
m_stacker->setPaletteBackgroundColor( TQColor( 255, 255, 255 ) );
- // m_stacker->setFocusPolicy( TQ_StrongFocus );
+ // m_stacker->setFocusPolicy( TQWidget::StrongFocus );
m_stacker->setLineWidth( 0 );
- m_stacker->setFocusPolicy(TQ_NoFocus);
- connect(m_stacker, TQT_SIGNAL(aboutToShow(TQWidget*)), TQT_SLOT(stackWidgetRaised(TQWidget*)));
+ m_stacker->setFocusPolicy(TQWidget::NoFocus);
+ connect(m_stacker, TQ_SIGNAL(aboutToShow(TQWidget*)), TQ_SLOT(stackWidgetRaised(TQWidget*)));
m_kcommand->setName("m_kcommand");
}
@@ -497,15 +464,6 @@ KMenu::~KMenu()
clearSubmenus();
delete m_filterData;
-
-#ifdef COMPILE_HALBACKEND
- if (m_halCtx) {
- DBusError error;
- dbus_error_init(&error);
- libhal_ctx_shutdown(m_halCtx, &error);
- libhal_ctx_free(m_halCtx);
- }
-#endif
}
bool KMenu::eventFilter ( TQObject * receiver, TQEvent* e)
@@ -522,16 +480,16 @@ bool KMenu::eventFilter ( TQObject * receiver, TQEvent* e)
TQPoint p;
if (e->type() == TQEvent::MouseMove || e->type() == TQEvent::MouseButtonPress) {
- TQMouseEvent* me = TQT_TQMOUSEEVENT(e);
+ TQMouseEvent* me = static_cast<TQMouseEvent*>(e);
p = me->globalPos();
}
else if (e->type() == TQEvent::Wheel) {
- TQWheelEvent* we = TQT_TQWHEELEVENT(e);
+ TQWheelEvent* we = static_cast<TQWheelEvent*>(e);
p = we->globalPos();
}
while (receiver) {
- if (TQT_BASE_OBJECT(receiver) == TQT_BASE_OBJECT(m_tabBar) && (e->type()!=TQEvent::MouseMove || KickerSettings::kickoffSwitchTabsOnHover() ) ) {
+ if (receiver == m_tabBar && (e->type()!=TQEvent::MouseMove || KickerSettings::kickoffSwitchTabsOnHover() ) ) {
TQTab* s = m_tabBar->selectTab(m_tabBar->mapFromGlobal(p));
if (s && s->identifier() == ApplicationsTab)
raiseWidget = m_browserView;
@@ -551,8 +509,8 @@ bool KMenu::eventFilter ( TQObject * receiver, TQEvent* e)
/* we do not want hover activation for the search line edit as this can be
* pretty disturbing */
- if ( (TQT_BASE_OBJECT(receiver) == TQT_BASE_OBJECT(m_searchPixmap) ||
- ( ( TQT_BASE_OBJECT(receiver) == TQT_BASE_OBJECT(m_searchLabel) || TQT_BASE_OBJECT(receiver)==TQT_BASE_OBJECT(m_kcommand->lineEdit()) ) &&
+ if ( (receiver == m_searchPixmap ||
+ ( ( receiver == m_searchLabel || receiver==m_kcommand->lineEdit() ) &&
( e->type() == TQEvent::KeyPress || e->type() == TQEvent::Wheel
|| e->type() == TQEvent::MouseButtonPress ) ) ) &&
!m_isShowing) {
@@ -564,25 +522,25 @@ bool KMenu::eventFilter ( TQObject * receiver, TQEvent* e)
if(raiseWidget)
break;
if(receiver->isWidgetType())
- receiver = TQT_TQOBJECT(TQT_TQWIDGET(receiver)->parentWidget(true));
+ receiver = static_cast<TQWidget*>(receiver)->parentWidget(true);
else
break;
}
if (e->type() == TQEvent::FocusIn && receiver && raiseWidget) {
- m_searchResultsWidget->setFocusPolicy(TQ_StrongFocus);
+ m_searchResultsWidget->setFocusPolicy(TQWidget::StrongFocus);
m_searchActions->setFocusPolicy(raiseWidget == m_searchWidget ?
- TQ_StrongFocus : TQ_NoFocus);
+ TQWidget::StrongFocus : TQWidget::NoFocus);
setTabOrder(raiseWidget, m_searchResultsWidget);
if (raiseWidget != m_stacker->visibleWidget()
- && TQT_TQWIDGET(receiver)->focusPolicy() == TQ_NoFocus
+ && static_cast<TQWidget*>(receiver)->focusPolicy() == TQWidget::NoFocus
&& m_stacker->id(raiseWidget) >= 0) {
m_stacker->raiseWidget(raiseWidget);
return true;
}
- if (raiseWidget->focusPolicy() != TQ_NoFocus)
+ if (raiseWidget->focusPolicy() != TQWidget::NoFocus)
return false;
}
@@ -604,7 +562,7 @@ bool KMenu::eventFilter ( TQObject * receiver, TQEvent* e)
}
if(e->type() == TQEvent::Enter && receiver->isWidgetType()) {
- TQT_TQWIDGET(receiver)->setMouseTracking(true);
+ static_cast<TQWidget*>(receiver)->setMouseTracking(true);
TQToolTip::hide();
}
@@ -631,7 +589,7 @@ bool KMenu::eventFilter ( TQObject * receiver, TQEvent* e)
if (view)
{
bool handled = true;
- switch (TQT_TQKEYEVENT(e)->key()) {
+ switch (static_cast<TQKeyEvent*>(e)->key()) {
case Key_Up:
if (view->selectedItem()) {
view->setSelected(view->selectedItem()->itemAbove(),true);
@@ -708,7 +666,7 @@ bool KMenu::eventFilter ( TQObject * receiver, TQEvent* e)
r = true;
}
- if (e->type() == TQEvent::Enter && TQT_BASE_OBJECT(receiver) == TQT_BASE_OBJECT(m_stacker))
+ if (e->type() == TQEvent::Enter && receiver == m_stacker)
{
TQRect r(m_stacker->mapToGlobal(TQPoint(-8,-32)), m_stacker->size());
r.setSize(r.size()+TQSize(16,128));
@@ -785,8 +743,8 @@ void KMenu::paintSearchTab( bool active )
m_tabBar->deactivateTabs(true);
- p.setBrush( Qt::white );
- p.setPen( Qt::NoPen );
+ p.setBrush( TQt::white );
+ p.setPen( TQt::NoPen );
if ( m_orientation == BottomUp ) {
search_tab_center.convertFromImage( search_tab_center.convertToImage().scale(search_tab_center.width(), m_searchFrame->height()));
@@ -1267,17 +1225,17 @@ void KMenu::initialize()
kdDebug(1210) << "KMenu::initialize()" << endl;
// in case we've been through here before, let's disconnect
- disconnect(kapp, TQT_SIGNAL(tdedisplayPaletteChanged()),
- this, TQT_SLOT(paletteChanged()));
- connect(kapp, TQT_SIGNAL(tdedisplayPaletteChanged()),
- this, TQT_SLOT(paletteChanged()));
+ disconnect(kapp, TQ_SIGNAL(tdedisplayPaletteChanged()),
+ this, TQ_SLOT(paletteChanged()));
+ connect(kapp, TQ_SIGNAL(tdedisplayPaletteChanged()),
+ this, TQ_SLOT(paletteChanged()));
/*
If the user configured ksmserver to
*/
TDEConfig ksmserver("ksmserverrc", false, false);
ksmserver.setGroup("General");
- connect( m_branding, TQT_SIGNAL(clicked()), TQT_SLOT(slotOpenHomepage()));
+ connect( m_branding, TQ_SIGNAL(clicked()), TQ_SLOT(slotOpenHomepage()));
m_tabBar->setTabEnabled(LeaveTab, kapp->authorize("logout"));
// load search field history
@@ -1374,10 +1332,7 @@ void KMenu::insertStaticExitItems()
}
bool maysd = false;
-#if defined(COMPILE_HALBACKEND)
- if (ksmserver.readBoolEntry( "offerShutdown", true ) && DM().canShutdown())
- maysd = true;
-#elif defined(__TDE_HAVE_TDEHWLIB)
+#if defined(WITH_TDEHWLIB)
TDERootSystemDevice* rootDevice = TDEGlobal::hardwareDevices()->rootSystemDevice();
if( rootDevice ) {
maysd = rootDevice->canPowerOff();
@@ -1490,11 +1445,11 @@ void KMenu::insertStaticItems()
m_systemView->insertItem( "network", i18n( "Network Folders" ),
"remote:/", "remote:/", nId++, index++ );
- m_mediaWatcher = new MediaWatcher( TQT_TQOBJECT(this) );
- connect( m_mediaWatcher, TQT_SIGNAL( mediumChanged() ), TQT_SLOT( updateMedia() ) );
+ m_mediaWatcher = new MediaWatcher( this );
+ connect( m_mediaWatcher, TQ_SIGNAL( mediumChanged() ), TQ_SLOT( updateMedia() ) );
m_media_id = 0;
- connect(&m_mediaFreeTimer, TQT_SIGNAL(timeout()), TQT_SLOT( updateMedia()));
+ connect(&m_mediaFreeTimer, TQ_SIGNAL(timeout()), TQ_SLOT( updateMedia()));
}
int KMenu::insertClientMenu(KickerClientMenu *)
@@ -1579,7 +1534,7 @@ void KMenu::slotSessionActivated( int ent )
void KMenu::doNewSession( bool lock )
{
int result = KMessageBox::warningContinueCancel(
- TQT_TQWIDGET(kapp->desktop()->screen(kapp->desktop()->screenNumber(this))),
+ kapp->desktop()->screen(kapp->desktop()->screenNumber(this)),
i18n("<p>You have chosen to open another desktop session.<br>"
"The current session will be hidden "
"and a new login screen will be displayed.<br>"
@@ -1797,7 +1752,7 @@ void KMenu::setOrientation(MenuOrientation orientation)
m_orientation=orientation;
- m_resizeHandle->setCursor(m_orientation == BottomUp ? tqsizeBDiagCursor : tqsizeFDiagCursor);
+ m_resizeHandle->setCursor(m_orientation == BottomUp ? TQt::sizeBDiagCursor : TQt::sizeFDiagCursor);
TQPixmap pix;
if ( m_orientation == BottomUp )
@@ -2046,7 +2001,7 @@ void KMenu::createNewProgramList()
m_seenPrograms = KickerSettings::firstSeenApps();
m_newInstalledPrograms.clear();
- m_currentDate = TQDate::currentDate().toString(Qt::ISODate);
+ m_currentDate = TQDate::currentDate().toString(TQt::ISODate);
bool initialize = (m_seenPrograms.count() == 0);
@@ -2108,7 +2063,7 @@ void KMenu::createNewProgramList(TQString relPath)
else {
++it_find;
if (*(it_find)!="-") {
- TQDate date = TQDate::fromString(*(it_find),Qt::ISODate);
+ TQDate date = TQDate::fromString(*(it_find),TQt::ISODate);
if (date.daysTo(TQDate::currentDate())<3) {
if (m_newInstalledPrograms.find(s->storageId())==m_newInstalledPrograms.end())
m_newInstalledPrograms+=s->storageId();
@@ -2328,7 +2283,7 @@ TQString KMenu::insertBreaks(const TQString& text, TQFontMetrics fm, int width,
void KMenu::clearSearchResults(bool showHelp)
{
m_searchResultsWidget->clear();
- m_searchResultsWidget->setFocusPolicy(showHelp ? TQ_NoFocus : TQ_StrongFocus);
+ m_searchResultsWidget->setFocusPolicy(showHelp ? TQWidget::NoFocus : TQWidget::StrongFocus);
setTabOrder(m_kcommand, m_searchResultsWidget);
if (showHelp) {
@@ -2810,7 +2765,7 @@ void KMenu::slotStartURL(const TQString& u)
void KMenu::slotContextMenuRequested( TQListViewItem * item, const TQPoint & pos, int /*col*/ )
{
- const TQObject* source = TQT_TQOBJECT_CONST(sender());
+ const TQObject* source = sender();
if (!item)
return;
@@ -2840,12 +2795,12 @@ void KMenu::slotContextMenuRequested( TQListViewItem * item, const TQPoint & pos
}
m_popupMenu = new TDEPopupMenu(this);
- connect(m_popupMenu, TQT_SIGNAL(activated(int)), TQT_SLOT(slotContextMenu(int)));
+ connect(m_popupMenu, TQ_SIGNAL(activated(int)), TQ_SLOT(slotContextMenu(int)));
bool hasEntries = false;
m_popupMenu->insertTitle(SmallIcon(kitem->icon()),kitem->title());
- if (TQT_BASE_OBJECT_CONST(source)==TQT_BASE_OBJECT(m_favoriteView))
+ if (source==m_favoriteView)
{
hasEntries = true;
m_popupMenu->insertItem(SmallIconSet("remove"),
@@ -2877,7 +2832,7 @@ void KMenu::slotContextMenuRequested( TQListViewItem * item, const TQPoint & pos
}
}
- if (TQT_BASE_OBJECT_CONST(source)!=TQT_BASE_OBJECT(m_exitView)) {
+ if (source!=m_exitView) {
if (m_popupService || (!m_popupPath.path.startsWith("kicker:/") && !m_popupPath.path.startsWith("system:/") && !m_popupPath.path.startsWith("kaddressbook:/"))) {
if (hasEntries)
m_popupMenu->insertSeparator();
@@ -2917,7 +2872,7 @@ void KMenu::slotContextMenuRequested( TQListViewItem * item, const TQPoint & pos
i18n("Put Into Run Dialog"), PutIntoRunDialog);
}
}
- if (TQT_BASE_OBJECT_CONST(source)==TQT_BASE_OBJECT(m_searchResultsWidget) || ((TQT_BASE_OBJECT_CONST(source)==TQT_BASE_OBJECT(m_favoriteView) || TQT_BASE_OBJECT_CONST(source)==TQT_BASE_OBJECT(m_recentlyView) || TQT_BASE_OBJECT_CONST(source) == TQT_BASE_OBJECT(m_systemView)) && !m_popupService && !m_popupPath.path.startsWith("kicker:/")) ) {
+ if (source==m_searchResultsWidget || ((source==m_favoriteView || source==m_recentlyView || source == m_systemView) && !m_popupService && !m_popupPath.path.startsWith("kicker:/")) ) {
TQString uri;
if (m_popupService)
uri = locate("apps", m_popupService->desktopEntryPath());
@@ -2954,7 +2909,7 @@ void KMenu::slotContextMenuRequested( TQListViewItem * item, const TQPoint & pos
}
}
- if (TQT_BASE_OBJECT_CONST(source)==TQT_BASE_OBJECT(m_recentlyView)) {
+ if (source==m_recentlyView) {
m_popupMenu->insertSeparator();
if (m_popupService)
m_popupMenu->insertItem(SmallIconSet("history_clear"),
@@ -3024,7 +2979,7 @@ void KMenu::slotContextMenu(int selected)
case EditItem:
case EditMenu:
accept();
- proc = new TDEProcess(TQT_TQOBJECT(this));
+ proc = new TDEProcess(this);
*proc << TDEStandardDirs::findExe(TQString::fromLatin1("kmenuedit"));
*proc << "/"+m_popupPath.menuPath.section('/',-200,-2) << m_popupPath.menuPath.section('/', -1);
proc->start();
@@ -3790,27 +3745,7 @@ void KMenu::insertSuspendOption( int &nId, int &index )
bool standby = false;
bool suspend_disk = false;
bool hybrid_suspend = false;
-#if defined(COMPILE_HALBACKEND)
- suspend_ram = libhal_device_get_property_bool(m_halCtx,
- "/org/freedesktop/Hal/devices/computer",
- "power_management.can_suspend",
- NULL);
-
- standby = libhal_device_get_property_bool(m_halCtx,
- "/org/freedesktop/Hal/devices/computer",
- "power_management.can_standby",
- NULL);
-
- suspend_disk = libhal_device_get_property_bool(m_halCtx,
- "/org/freedesktop/Hal/devices/computer",
- "power_management.can_hibernate",
- NULL);
-
- hybrid_suspend = libhal_device_get_property_bool(m_halCtx,
- "/org/freedesktop/Hal/devices/computer",
- "power_management.can_suspend_hybrid",
- NULL);
-#elif defined(__TDE_HAVE_TDEHWLIB) // COMPILE_HALBACKEND
+#if defined(WITH_TDEHWLIB)
TDERootSystemDevice* rootDevice = TDEGlobal::hardwareDevices()->rootSystemDevice();
if (rootDevice) {
suspend_ram = rootDevice->canSuspend();
@@ -3882,49 +3817,7 @@ void KMenu::slotSuspend(int id)
DCOPRef("kdesktop", "KScreensaverIface").call("lock()");
}
-#if defined(COMPILE_HALBACKEND)
- DBusMessage* msg = NULL;
-
- if (m_dbusConn) {
- // No Freeze support in HAL
- if (id == SuspendType::Standby) {
- msg = dbus_message_new_method_call(
- "org.freedesktop.Hal",
- "/org/freedesktop/Hal/devices/computer",
- "org.freedesktop.Hal.Device.SystemPowerManagement",
- "Standby");
- } else if (id == SuspendType::Suspend) {
- msg = dbus_message_new_method_call(
- "org.freedesktop.Hal",
- "/org/freedesktop/Hal/devices/computer",
- "org.freedesktop.Hal.Device.SystemPowerManagement",
- "Suspend");
- int wakeup=0;
- dbus_message_append_args(msg, DBUS_TYPE_INT32, &wakeup, DBUS_TYPE_INVALID);
- } else if (id == SuspendType::Hibernate) {
- msg = dbus_message_new_method_call(
- "org.freedesktop.Hal",
- "/org/freedesktop/Hal/devices/computer",
- "org.freedesktop.Hal.Device.SystemPowerManagement",
- "Hibernate");
- } else if (id == SuspendType::HybridSuspend) {
- msg = dbus_message_new_method_call(
- "org.freedesktop.Hal",
- "/org/freedesktop/Hal/devices/computer",
- "org.freedesktop.Hal.Device.SystemPowerManagement",
- "SuspendHybrid");
- int wakeup=0;
- dbus_message_append_args(msg, DBUS_TYPE_INT32, &wakeup, DBUS_TYPE_INVALID);
- } else {
- return;
- }
-
- if(dbus_connection_send(m_dbusConn, msg, NULL)) {
- error = false;
- }
- dbus_message_unref(msg);
- }
-#elif defined(__TDE_HAVE_TDEHWLIB) // COMPILE_HALBACKEND
+#if defined(WITH_TDEHWLIB)
TDERootSystemDevice* rootDevice = TDEGlobal::hardwareDevices()->rootSystemDevice();
if (rootDevice) {
if (id == SuspendType::Freeze) {
diff --git a/kicker/kicker/ui/k_new_mnu.h b/kicker/kicker/ui/k_new_mnu.h
index acb80342b..b0e18e7cb 100644
--- a/kicker/kicker/ui/k_new_mnu.h
+++ b/kicker/kicker/ui/k_new_mnu.h
@@ -45,16 +45,6 @@
#include <config.h>
-#ifdef COMPILE_HALBACKEND
-#ifndef NO_QT3_DBUS_SUPPORT
-/* We acknowledge the the dbus API is unstable */
-#define DBUS_API_SUBJECT_TO_CHANGE
-#include <dbus/connection.h>
-#endif // NO_QT3_DBUS_SUPPORT
-
-#include <hal/libhal.h>
-#endif // COMPILE_HALBACKEND
-
class KickerClientMenu;
class KickoffTabBar;
class KBookmarkMenu;
@@ -88,7 +78,7 @@ enum OverflowCategoryState { None, Filling, NotNeeded };
class KMenu : public KMenuBase
{
- Q_OBJECT
+ TQ_OBJECT
TQ_PROPERTY (bool TDEStyleMenuDropShadow READ useTDEStyleMenuDropShadow )
public:
@@ -347,11 +337,6 @@ private:
void fillOverflowCategory();
TQString insertBreaks(const TQString& text, TQFontMetrics fm, int width, TQString leadInsert = TQString::null);
-
-#ifdef COMPILE_HALBACKEND
- LibHalContext* m_halCtx;
- DBusConnection *m_dbusConn;
-#endif
};
#endif
diff --git a/kicker/kicker/ui/kickoff_bar.cpp b/kicker/kicker/ui/kickoff_bar.cpp
index c13bffe14..977ec1089 100644
--- a/kicker/kicker/ui/kickoff_bar.cpp
+++ b/kicker/kicker/ui/kickoff_bar.cpp
@@ -199,7 +199,7 @@ void KickoffTabBar::layoutTabs()
int w = TQMAX(st.width() / count(), parentWidget()->width() / count());
TQRect r = tab->rect();
- tab->setRect(TQRect(TQPoint(x, 0), style().tqsizeFromContents(TQStyle::CT_TabBarTab, this,
+ tab->setRect(TQRect(TQPoint(x, 0), style().sizeFromContents(TQStyle::CT_TabBarTab, this,
TQSize(w, h), TQStyleOption(tab))));
x += tab->rect().width() - overlap;
}
@@ -223,7 +223,7 @@ void KickoffTabBar::dragMoveEvent(TQDragMoveEvent* event)
void KickoffTabBar::mousePressEvent( TQMouseEvent * e )
{
- if ( e->button() != Qt::LeftButton ) {
+ if ( e->button() != TQt::LeftButton ) {
e->ignore();
return;
}
diff --git a/kicker/kicker/ui/kickoff_bar.h b/kicker/kicker/ui/kickoff_bar.h
index 941f1144f..d5dcb8d3c 100644
--- a/kicker/kicker/ui/kickoff_bar.h
+++ b/kicker/kicker/ui/kickoff_bar.h
@@ -27,7 +27,7 @@
class KickoffTabBar : public TQTabBar
{
- Q_OBJECT
+ TQ_OBJECT
public:
KickoffTabBar(TQWidget* parent, const char* name);
diff --git a/kicker/kicker/ui/media_watcher.h b/kicker/kicker/ui/media_watcher.h
index 604fcaabe..0f6cb6fae 100644
--- a/kicker/kicker/ui/media_watcher.h
+++ b/kicker/kicker/ui/media_watcher.h
@@ -30,7 +30,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
class MediaWatcher : public TQObject, public DCOPObject
{
- Q_OBJECT
+ TQ_OBJECT
K_DCOP
TQStringList m_devices;
diff --git a/kicker/kicker/ui/mykickoffsearchinterface.h b/kicker/kicker/ui/mykickoffsearchinterface.h
index b728718c4..4271766d8 100644
--- a/kicker/kicker/ui/mykickoffsearchinterface.h
+++ b/kicker/kicker/ui/mykickoffsearchinterface.h
@@ -28,7 +28,7 @@ using namespace KickoffSearch;
class MyKickoffSearchInterface :public KickoffSearchInterface
{
- Q_OBJECT
+ TQ_OBJECT
public:
MyKickoffSearchInterface( KMenu*, TQObject* parent, const char* name = 0 );
diff --git a/kicker/kicker/ui/popupmenutitle.h b/kicker/kicker/ui/popupmenutitle.h
index d839a3b84..7aa839218 100644
--- a/kicker/kicker/ui/popupmenutitle.h
+++ b/kicker/kicker/ui/popupmenutitle.h
@@ -46,7 +46,7 @@ public:
{
p->save();
TQRect r(x, y, w, h);
- kapp->style().tqdrawPrimitive(TQStyle::PE_HeaderSectionMenu,
+ kapp->style().drawPrimitive(TQStyle::PE_HeaderSectionMenu,
p, r, cg);
if (!m_desktopName.isEmpty())
diff --git a/kicker/kicker/ui/quickbrowser_mnu.h b/kicker/kicker/ui/quickbrowser_mnu.h
index 01b12d09d..98a3eb4c4 100644
--- a/kicker/kicker/ui/quickbrowser_mnu.h
+++ b/kicker/kicker/ui/quickbrowser_mnu.h
@@ -28,7 +28,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
class PanelQuickBrowser : public KPanelMenu
{
- Q_OBJECT
+ TQ_OBJECT
public:
PanelQuickBrowser(TQWidget *parent=0, const char *name=0);
diff --git a/kicker/kicker/ui/removeapplet_mnu.cpp b/kicker/kicker/ui/removeapplet_mnu.cpp
index a7bc609a6..4ce3c4ea0 100644
--- a/kicker/kicker/ui/removeapplet_mnu.cpp
+++ b/kicker/kicker/ui/removeapplet_mnu.cpp
@@ -37,8 +37,8 @@ PanelRemoveAppletMenu::PanelRemoveAppletMenu(ContainerArea* cArea,
const char *name)
: TQPopupMenu(parent, name), m_containerArea(cArea)
{
- connect(this, TQT_SIGNAL(activated(int)), TQT_SLOT(slotExec(int)));
- connect(this, TQT_SIGNAL(aboutToShow()), TQT_SLOT(slotAboutToShow()));
+ connect(this, TQ_SIGNAL(activated(int)), TQ_SLOT(slotExec(int)));
+ connect(this, TQ_SIGNAL(aboutToShow()), TQ_SLOT(slotAboutToShow()));
}
void PanelRemoveAppletMenu::slotAboutToShow()
@@ -81,7 +81,7 @@ void PanelRemoveAppletMenu::slotAboutToShow()
if (m_containers.count() > 1)
{
insertSeparator();
- insertItem(i18n("All"), this, TQT_SLOT(slotRemoveAll()), 0, id);
+ insertItem(i18n("All"), this, TQ_SLOT(slotRemoveAll()), 0, id);
}
}
diff --git a/kicker/kicker/ui/removeapplet_mnu.h b/kicker/kicker/ui/removeapplet_mnu.h
index 895ded710..17b24b496 100644
--- a/kicker/kicker/ui/removeapplet_mnu.h
+++ b/kicker/kicker/ui/removeapplet_mnu.h
@@ -34,7 +34,7 @@ class ContainerArea;
class PanelRemoveAppletMenu : public TQPopupMenu
{
- Q_OBJECT
+ TQ_OBJECT
public:
PanelRemoveAppletMenu(ContainerArea* cArea, TQWidget* parent = 0, const char* name = 0);
diff --git a/kicker/kicker/ui/removebutton_mnu.cpp b/kicker/kicker/ui/removebutton_mnu.cpp
index 819eff533..6617975f5 100644
--- a/kicker/kicker/ui/removebutton_mnu.cpp
+++ b/kicker/kicker/ui/removebutton_mnu.cpp
@@ -40,8 +40,8 @@ PanelRemoveButtonMenu::PanelRemoveButtonMenu( ContainerArea* cArea,
TQWidget *parent, const char *name )
: TQPopupMenu( parent, name ), containerArea( cArea )
{
- connect(this, TQT_SIGNAL(activated(int)), TQT_SLOT(slotExec(int)));
- connect(this, TQT_SIGNAL(aboutToShow()), TQT_SLOT(slotAboutToShow()));
+ connect(this, TQ_SIGNAL(activated(int)), TQ_SLOT(slotExec(int)));
+ connect(this, TQ_SIGNAL(aboutToShow()), TQ_SLOT(slotAboutToShow()));
}
void PanelRemoveButtonMenu::addToContainers(const TQString& type)
@@ -89,7 +89,7 @@ void PanelRemoveButtonMenu::slotAboutToShow()
if (containers.count() > 1)
{
insertSeparator();
- insertItem(i18n("All"), this, TQT_SLOT(slotRemoveAll()), 0, id);
+ insertItem(i18n("All"), this, TQ_SLOT(slotRemoveAll()), 0, id);
}
}
diff --git a/kicker/kicker/ui/removebutton_mnu.h b/kicker/kicker/ui/removebutton_mnu.h
index 211edd771..d3b5d7237 100644
--- a/kicker/kicker/ui/removebutton_mnu.h
+++ b/kicker/kicker/ui/removebutton_mnu.h
@@ -34,7 +34,7 @@ class ContainerArea;
class PanelRemoveButtonMenu : public TQPopupMenu
{
- Q_OBJECT
+ TQ_OBJECT
public:
PanelRemoveButtonMenu( ContainerArea *cArea, TQWidget *parent=0, const char *name=0 );
diff --git a/kicker/kicker/ui/removecontainer_mnu.cpp b/kicker/kicker/ui/removecontainer_mnu.cpp
index 1b30506cc..a447b4d66 100644
--- a/kicker/kicker/ui/removecontainer_mnu.cpp
+++ b/kicker/kicker/ui/removecontainer_mnu.cpp
@@ -44,7 +44,7 @@ RemoveContainerMenu::RemoveContainerMenu( ContainerArea* cArea,
buttonId = insertItem(i18n("Appli&cation"),
new PanelRemoveButtonMenu( containerArea, this ) );
adjustSize();
- connect( this, TQT_SIGNAL( aboutToShow() ), TQT_SLOT( slotAboutToShow() ) );
+ connect( this, TQ_SIGNAL( aboutToShow() ), TQ_SLOT( slotAboutToShow() ) );
}
RemoveContainerMenu::~RemoveContainerMenu()
diff --git a/kicker/kicker/ui/removecontainer_mnu.h b/kicker/kicker/ui/removecontainer_mnu.h
index bd6d03d89..4f5546449 100644
--- a/kicker/kicker/ui/removecontainer_mnu.h
+++ b/kicker/kicker/ui/removecontainer_mnu.h
@@ -30,7 +30,7 @@ class ContainerArea;
class RemoveContainerMenu : public TQPopupMenu
{
- Q_OBJECT
+ TQ_OBJECT
public:
RemoveContainerMenu(ContainerArea* cArea, TQWidget *parent=0, const char *name=0);
diff --git a/kicker/kicker/ui/removeextension_mnu.cpp b/kicker/kicker/ui/removeextension_mnu.cpp
index 829dfab5c..ef345921d 100644
--- a/kicker/kicker/ui/removeextension_mnu.cpp
+++ b/kicker/kicker/ui/removeextension_mnu.cpp
@@ -37,8 +37,8 @@ static const int REMOVEALLID = 1000;
PanelRemoveExtensionMenu::PanelRemoveExtensionMenu( TQWidget *parent, const char *name )
: TQPopupMenu( parent, name )
{
- connect(this, TQT_SIGNAL(activated(int)), TQT_SLOT(slotExec(int)));
- connect(this, TQT_SIGNAL(aboutToShow()), TQT_SLOT(slotAboutToShow()));
+ connect(this, TQ_SIGNAL(activated(int)), TQ_SLOT(slotExec(int)));
+ connect(this, TQ_SIGNAL(aboutToShow()), TQ_SLOT(slotAboutToShow()));
}
PanelRemoveExtensionMenu::PanelRemoveExtensionMenu()
diff --git a/kicker/kicker/ui/removeextension_mnu.h b/kicker/kicker/ui/removeextension_mnu.h
index e77522bc8..847179caa 100644
--- a/kicker/kicker/ui/removeextension_mnu.h
+++ b/kicker/kicker/ui/removeextension_mnu.h
@@ -31,7 +31,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
class PanelRemoveExtensionMenu : public TQPopupMenu
{
- Q_OBJECT
+ TQ_OBJECT
public:
PanelRemoveExtensionMenu( TQWidget *parent=0, const char *name=0 );
diff --git a/kicker/kicker/ui/service_mnu.cpp b/kicker/kicker/ui/service_mnu.cpp
index b7e069706..e661ee1ea 100644
--- a/kicker/kicker/ui/service_mnu.cpp
+++ b/kicker/kicker/ui/service_mnu.cpp
@@ -68,10 +68,10 @@ PanelServiceMenu::PanelServiceMenu(const TQString & label, const TQString & relP
{
excludeNoDisplay_=true;
- connect(KSycoca::self(), TQT_SIGNAL(databaseChanged()),
- TQT_SLOT(slotClearOnClose()));
- connect(this, TQT_SIGNAL(aboutToHide()), this, TQT_SLOT(slotClose()));
- connect(this, TQT_SIGNAL(highlighted(int)), this, TQT_SLOT(slotSetTooltip(int)));
+ connect(KSycoca::self(), TQ_SIGNAL(databaseChanged()),
+ TQ_SLOT(slotClearOnClose()));
+ connect(this, TQ_SIGNAL(aboutToHide()), this, TQ_SLOT(slotClose()));
+ connect(this, TQ_SIGNAL(highlighted(int)), this, TQ_SLOT(slotSetTooltip(int)));
}
PanelServiceMenu::~PanelServiceMenu()
@@ -378,7 +378,7 @@ void PanelServiceMenu::doInitialize()
if (relPath_ == "")
{
insertItem(KickerLib::menuIconSet("application-x-executable"), i18n("Add Non-TDE Application"),
- this, TQT_SLOT(addNonKDEApp()));
+ this, TQ_SLOT(addNonKDEApp()));
}
if (list.count() > 0) {
@@ -571,7 +571,7 @@ void PanelServiceMenu::mousePressEvent(TQMouseEvent * ev)
void PanelServiceMenu::mouseReleaseEvent(TQMouseEvent * ev)
{
- if (ev->button() == Qt::RightButton && !Kicker::the()->isKioskImmutable())
+ if (ev->button() == TQt::RightButton && !Kicker::the()->isKioskImmutable())
{
int id = idAt( ev->pos() );
@@ -590,7 +590,7 @@ void PanelServiceMenu::mouseReleaseEvent(TQMouseEvent * ev)
delete popupMenu_;
popupMenu_ = new TDEPopupMenu(this);
- connect(popupMenu_, TQT_SIGNAL(activated(int)), TQT_SLOT(slotContextMenu(int)));
+ connect(popupMenu_, TQ_SIGNAL(activated(int)), TQ_SLOT(slotContextMenu(int)));
bool hasEntries = false;
switch (contextKSycocaEntry_->sycocaType())
@@ -696,7 +696,7 @@ void PanelServiceMenu::slotContextMenu(int selected)
}
case EditItem:
- proc = new TDEProcess(TQT_TQOBJECT(this));
+ proc = new TDEProcess(this);
*proc << TDEStandardDirs::findExe(TQString::fromLatin1("kmenuedit"));
*proc << "/"+relPath_ << static_cast<KService *>(contextKSycocaEntry_)->menuId();
proc->start();
@@ -740,7 +740,7 @@ void PanelServiceMenu::slotContextMenu(int selected)
}
case EditMenu:
- proc = new TDEProcess(TQT_TQOBJECT(this));
+ proc = new TDEProcess(this);
*proc << TDEStandardDirs::findExe(TQString::fromLatin1("kmenuedit"));
*proc << "/"+static_cast<KServiceGroup *>(contextKSycocaEntry_)->relPath();
proc->start();
@@ -758,7 +758,7 @@ void PanelServiceMenu::mouseMoveEvent(TQMouseEvent * ev)
if (Kicker::the()->isKioskImmutable())
return;
- if ( (ev->state() & Qt::LeftButton ) != Qt::LeftButton )
+ if ( (ev->state() & TQt::LeftButton ) != TQt::LeftButton )
return;
TQPoint p = ev->pos() - startPos_;
@@ -814,7 +814,7 @@ void PanelServiceMenu::mouseMoveEvent(TQMouseEvent * ev)
// path from KStdDirs.
KURLDrag *d = new KURLDrag(KURL::List(url), this);
- connect(d, TQT_SIGNAL(destroyed()), this, TQT_SLOT(slotDragObjectDestroyed()));
+ connect(d, TQ_SIGNAL(destroyed()), this, TQ_SLOT(slotDragObjectDestroyed()));
d->setPixmap(icon);
d->dragCopy();
@@ -840,7 +840,7 @@ void PanelServiceMenu::dragEnterEvent(TQDragEnterEvent *event)
void PanelServiceMenu::dragLeaveEvent(TQDragLeaveEvent *)
{
// see PanelServiceMenu::dragEnterEvent why this is nescessary
- if (!TQT_TQRECT_OBJECT(frameGeometry()).contains(TQCursor::pos()))
+ if (!frameGeometry().contains(TQCursor::pos()))
{
KURLDrag::setTarget(0);
}
@@ -857,7 +857,7 @@ void PanelServiceMenu::slotDragObjectDestroyed()
// the execution of any code after the original exec() statement
// though the panels themselves continue on otherwise normally
// (we just have some sort of nested event loop)
- TQTimer::singleShot(0, this, TQT_SLOT(close()));
+ TQTimer::singleShot(0, this, TQ_SLOT(close()));
}
}
@@ -898,7 +898,7 @@ void PanelServiceMenu::slotClear()
// QPopupMenu's aboutToHide() is emitted before the popup is really hidden,
// and also before a click in the menu is handled, so do the clearing
// only after that has been handled
- TQTimer::singleShot(100, this, TQT_SLOT(slotClear()));
+ TQTimer::singleShot(100, this, TQ_SLOT(slotClear()));
return;
}
diff --git a/kicker/kicker/ui/service_mnu.h b/kicker/kicker/ui/service_mnu.h
index 9cbfaa068..a52e10d45 100644
--- a/kicker/kicker/ui/service_mnu.h
+++ b/kicker/kicker/ui/service_mnu.h
@@ -50,7 +50,7 @@ typedef TQMap<PanelServiceMenu*,int> PanelServiceMenuMap;
class KDE_EXPORT PanelServiceMenu : public KPanelMenu
{
- Q_OBJECT
+ TQ_OBJECT
public:
PanelServiceMenu(const TQString & label, const TQString & relPath,