diff options
Diffstat (limited to 'kradio3/src/widgetplugins.cpp')
-rw-r--r-- | kradio3/src/widgetplugins.cpp | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/kradio3/src/widgetplugins.cpp b/kradio3/src/widgetplugins.cpp index 434b568..a0e662a 100644 --- a/kradio3/src/widgetplugins.cpp +++ b/kradio3/src/widgetplugins.cpp @@ -23,11 +23,11 @@ #endif #include <kwin.h> -#include <qwidget.h> +#include <tqwidget.h> #include <kconfig.h> #include <klocale.h> -WidgetPluginBase::WidgetPluginBase(const QString &name, const QString &description) +WidgetPluginBase::WidgetPluginBase(const TQString &name, const TQString &description) : PluginBase(name, description), m_geoCacheValid(false), m_geoRestoreFlag(false), @@ -36,15 +36,15 @@ WidgetPluginBase::WidgetPluginBase(const QString &name, const QString &descripti } /* -QWidget *WidgetPluginBase::getWidget() +TQWidget *WidgetPluginBase::getWidget() { - return dynamic_cast<QWidget*>(this); + return dynamic_cast<TQWidget*>(this); } -const QWidget *WidgetPluginBase::getWidget() const +const TQWidget *WidgetPluginBase::getWidget() const { - return dynamic_cast<const QWidget*>(this); + return dynamic_cast<const TQWidget*>(this); } */ @@ -55,9 +55,9 @@ void WidgetPluginBase::notifyManager(bool shown) } -bool WidgetPluginBase::isReallyVisible(const QWidget *_w) const +bool WidgetPluginBase::isReallyVisible(const TQWidget *_w) const { - const QWidget *w = _w ? _w : getWidget(); + const TQWidget *w = _w ? _w : getWidget(); if (!w) return false; KWin::WindowInfo i = KWin::WindowInfo(w->winId(), 0, 0); return (i.mappingState() == NET::Visible) @@ -66,9 +66,9 @@ bool WidgetPluginBase::isReallyVisible(const QWidget *_w) const } -bool WidgetPluginBase::isAnywhereVisible(const QWidget *_w) const +bool WidgetPluginBase::isAnywhereVisible(const TQWidget *_w) const { - const QWidget *w = _w ? _w : getWidget(); + const TQWidget *w = _w ? _w : getWidget(); if (!w) return false; return w->isVisible(); } @@ -76,7 +76,7 @@ bool WidgetPluginBase::isAnywhereVisible(const QWidget *_w) const void WidgetPluginBase::pShow(bool on) { - QWidget *w = getWidget(); + TQWidget *w = getWidget(); if (!w) return; if (on && !isReallyVisible(w)) w->show(); @@ -87,7 +87,7 @@ void WidgetPluginBase::pShow(bool on) void WidgetPluginBase::pToggleShown() { - QWidget *w = getWidget(); + TQWidget *w = getWidget(); if (!w) return; if (!isReallyVisible(w)) w->show(); @@ -100,9 +100,9 @@ void WidgetPluginBase::pShowOnOrgDesktop() { KWin::setMainWindow(getWidget(), 0); - logDebug(QString("%1::pShowOnOrgDesktop: all: %2, desktop: %3, visible:%4, anywherevisible:%5, cachevalid: %6").arg(name()).arg(m_saveSticky).arg(m_saveDesktop).arg(isReallyVisible()).arg(isAnywhereVisible()).arg(m_geoCacheValid)); + logDebug(TQString("%1::pShowOnOrgDesktop: all: %2, desktop: %3, visible:%4, anywherevisible:%5, cachevalid: %6").tqarg(name()).tqarg(m_saveSticky).tqarg(m_saveDesktop).tqarg(isReallyVisible()).tqarg(isAnywhereVisible()).tqarg(m_geoCacheValid)); if (m_geoCacheValid && (!isReallyVisible() || m_geoRestoreFlag) ) { - QWidget *w = getWidget(); + TQWidget *w = getWidget(); if (!w) return; WId id = w->winId(); @@ -131,9 +131,9 @@ void WidgetPluginBase::pShow() { KWin::setMainWindow(getWidget(), 0); - logDebug(QString("%1::pShow: all: %2, desktop: %3, visible:%4, anywherevisible:%5, cachevalid: %6").arg(name()).arg(m_saveSticky).arg(m_saveDesktop).arg(isReallyVisible()).arg(isAnywhereVisible()).arg(m_geoCacheValid)); + logDebug(TQString("%1::pShow: all: %2, desktop: %3, visible:%4, anywherevisible:%5, cachevalid: %6").tqarg(name()).tqarg(m_saveSticky).tqarg(m_saveDesktop).tqarg(isReallyVisible()).tqarg(isAnywhereVisible()).tqarg(m_geoCacheValid)); if (m_geoCacheValid && (!isReallyVisible() || m_geoRestoreFlag) ) { - QWidget *w = getWidget(); + TQWidget *w = getWidget(); if (!w) return; WId id = w->winId(); @@ -150,29 +150,29 @@ void WidgetPluginBase::pShow() void WidgetPluginBase::pHide() { - logDebug(QString("%1::pHide1: all: %2, desktop: %3, visible:%4, anywherevisible:%5, cachevalid: %6").arg(name()).arg(m_saveSticky).arg(m_saveDesktop).arg(isReallyVisible()).arg(isAnywhereVisible()).arg(m_geoCacheValid)); + logDebug(TQString("%1::pHide1: all: %2, desktop: %3, visible:%4, anywherevisible:%5, cachevalid: %6").tqarg(name()).tqarg(m_saveSticky).tqarg(m_saveDesktop).tqarg(isReallyVisible()).tqarg(isAnywhereVisible()).tqarg(m_geoCacheValid)); getKWinState(); - logDebug(QString("%1::pHide2: all: %2, desktop: %3, visible:%4, anywherevisible:%5, cachevalid: %6").arg(name()).arg(m_saveSticky).arg(m_saveDesktop).arg(isReallyVisible()).arg(isAnywhereVisible()).arg(m_geoCacheValid)); + logDebug(TQString("%1::pHide2: all: %2, desktop: %3, visible:%4, anywherevisible:%5, cachevalid: %6").tqarg(name()).tqarg(m_saveSticky).tqarg(m_saveDesktop).tqarg(isReallyVisible()).tqarg(isAnywhereVisible()).tqarg(m_geoCacheValid)); } -void WidgetPluginBase::pShowEvent(QShowEvent *) +void WidgetPluginBase::pShowEvent(TQShowEvent *) { notifyManager (true); } -void WidgetPluginBase::pHideEvent(QHideEvent *) +void WidgetPluginBase::pHideEvent(TQHideEvent *) { notifyManager (false); } -void WidgetPluginBase::getKWinState(const QWidget *_w) const +void WidgetPluginBase::getKWinState(const TQWidget *_w) const { if (m_geoRestoreFlag) return; - const QWidget *w = _w ? _w : getWidget(); + const TQWidget *w = _w ? _w : getWidget(); if (!w) return; if (w->isVisible()) { KWin::WindowInfo i = KWin::WindowInfo(w->winId(), 0, 0); @@ -180,7 +180,7 @@ void WidgetPluginBase::getKWinState(const QWidget *_w) const m_saveMaximized = w->isMaximized(); m_saveSticky = i.onAllDesktops(); m_saveDesktop = i.desktop(); - m_saveGeometry = QRect(w->pos(), w->size()); + m_saveGeometry = TQRect(w->pos(), w->size()); m_geoCacheValid = true; } } @@ -188,7 +188,7 @@ void WidgetPluginBase::getKWinState(const QWidget *_w) const void WidgetPluginBase::saveState (KConfig *config) const { - const QWidget *w = getWidget(); + const TQWidget *w = getWidget(); getKWinState(w); config->writeEntry("hidden", w ? w->isHidden() : false); @@ -224,7 +224,7 @@ void WidgetPluginBase::startPlugin() { PluginBase::startPlugin(); - QWidget *w = getWidget(); + TQWidget *w = getWidget(); if (w) { m_geoRestoreFlag = true; if (!m_restoreShow) w->hide(); |