summaryrefslogtreecommitdiffstats
path: root/noatun-plugins/noatunmadness/madness.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'noatun-plugins/noatunmadness/madness.cpp')
-rw-r--r--noatun-plugins/noatunmadness/madness.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/noatun-plugins/noatunmadness/madness.cpp b/noatun-plugins/noatunmadness/madness.cpp
index 0b0d086..7027029 100644
--- a/noatun-plugins/noatunmadness/madness.cpp
+++ b/noatun-plugins/noatunmadness/madness.cpp
@@ -30,16 +30,16 @@ Plugin *create_plugin()
Madness::Madness()
: MonoFFTScope(100), Plugin(), mWm(this)
{
- connect(&mWm, SIGNAL(currentDesktopChanged(int)), SLOT(update()));
- connect(&mWm, SIGNAL(windowAdded(WId)), SLOT(update()));
- connect(&mWm, SIGNAL(windowRemoved(WId)), SLOT(update()));
- connect(&mWm, SIGNAL(strutChanged()), SLOT(update()));
+ connect(&mWm, TQT_SIGNAL(currentDesktopChanged(int)), TQT_SLOT(update()));
+ connect(&mWm, TQT_SIGNAL(windowAdded(WId)), TQT_SLOT(update()));
+ connect(&mWm, TQT_SIGNAL(windowRemoved(WId)), TQT_SLOT(update()));
+ connect(&mWm, TQT_SIGNAL(strutChanged()), TQT_SLOT(update()));
}
Madness::~Madness()
{
- QMap<WId, QPoint>::ConstIterator it(mOriginalPositions.begin());
+ TQMap<WId, TQPoint>::ConstIterator it(mOriginalPositions.begin());
for (; it != mOriginalPositions.end(); ++it)
XMoveWindow(qt_xdisplay(), it.key(), (*it).x(), (*it).y());
@@ -50,11 +50,11 @@ void Madness::update()
mWindowList = mWm.windows();
mWorkArea = mWm.workArea();
- QValueList<WId>::ConstIterator it(mWindowList.begin());
+ TQValueList<WId>::ConstIterator it(mWindowList.begin());
for (; it != mWindowList.end(); ++it)
{
- QRect area=KWin::info(*it).frameGeometry;
+ TQRect area=KWin::info(*it).frameGeometry;
if (!mOriginalPositions.contains(*it))
mOriginalPositions.insert(*it, area.topLeft());
}
@@ -76,7 +76,7 @@ void Madness::scopeEvent(float *d, int size)
// cout << "delta: " << delta << endl;
- QValueList<WId>::ConstIterator it(mWindowList.begin());
+ TQValueList<WId>::ConstIterator it(mWindowList.begin());
for (; it != mWindowList.end(); ++it)
{
@@ -92,7 +92,7 @@ void Madness::scopeEvent(float *d, int size)
|| (mWm.currentDesktop() != i.desktop))
continue;
- QRect area=i.frameGeometry;
+ TQRect area=i.frameGeometry;
float lightness=100000.0/(area.width()*area.height());
int x=area.x();