summaryrefslogtreecommitdiffstats
path: root/konq-plugins/sidebar/metabar/src/metabarfunctions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'konq-plugins/sidebar/metabar/src/metabarfunctions.cpp')
-rw-r--r--konq-plugins/sidebar/metabar/src/metabarfunctions.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/konq-plugins/sidebar/metabar/src/metabarfunctions.cpp b/konq-plugins/sidebar/metabar/src/metabarfunctions.cpp
index 8c457de..1aaf9e8 100644
--- a/konq-plugins/sidebar/metabar/src/metabarfunctions.cpp
+++ b/konq-plugins/sidebar/metabar/src/metabarfunctions.cpp
@@ -26,16 +26,16 @@
#include <kconfig.h>
-#include <qrect.h>
+#include <tqrect.h>
#define CSS_PRIORITY "important"
#define RESIZE_SPEED 5
#define RESIZE_STEP 2
-MetabarFunctions::MetabarFunctions(KHTMLPart *html, QObject *parent, const char* name) : QObject(parent, name), m_html(html)
+MetabarFunctions::MetabarFunctions(KHTMLPart *html, TQObject *parent, const char* name) : TQObject(parent, name), m_html(html)
{
- timer = new QTimer(this);
- connect(timer, SIGNAL(timeout()), this, SLOT(animate()));
+ timer = new TQTimer(this);
+ connect(timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(animate()));
}
MetabarFunctions::~MetabarFunctions()
@@ -47,8 +47,8 @@ MetabarFunctions::~MetabarFunctions()
void MetabarFunctions::handleRequest(const KURL &url)
{
- QString function = url.host();
- QStringList params = QStringList::split(',', url.filename());
+ TQString function = url.host();
+ TQStringList params = TQStringList::split(',', url.filename());
if(function == "toggle"){
if(params.size() == 1){
@@ -106,7 +106,7 @@ void MetabarFunctions::toggle(DOM::DOMString item)
}
}
else{
- style.setProperty("height", QString("%1px").arg(height), CSS_PRIORITY);
+ style.setProperty("height", TQString("%1px").arg(height), CSS_PRIORITY);
}
}
}
@@ -137,7 +137,7 @@ void MetabarFunctions::adjustSize(DOM::DOMString item)
}
}
else{
- style.setProperty("height", QString("%1px").arg(height), CSS_PRIORITY);
+ style.setProperty("height", TQString("%1px").arg(height), CSS_PRIORITY);
}
}
}
@@ -145,9 +145,9 @@ void MetabarFunctions::adjustSize(DOM::DOMString item)
void MetabarFunctions::animate()
{
- QMap<QString, int>::Iterator it;
+ TQMap<TQString, int>::Iterator it;
for(it = resizeMap.begin(); it != resizeMap.end(); ++it ) {
- QString id = it.key();
+ TQString id = it.key();
int height = it.data();
int currentHeight = 0;
@@ -155,7 +155,7 @@ void MetabarFunctions::animate()
DOM::HTMLElement node = static_cast<DOM::HTMLElement>(doc.getElementById(id));
DOM::CSSStyleDeclaration style = node.style();
- QString currentHeightString = style.getPropertyValue("height").string();
+ TQString currentHeightString = style.getPropertyValue("height").string();
if(currentHeightString.endsWith("px")){
currentHeight = currentHeightString.left(currentHeightString.length() - 2).toInt();
}
@@ -176,7 +176,7 @@ void MetabarFunctions::animate()
}
int change = currentHeight < height ? changeValue : -changeValue;
- style.setProperty("height", QString("%1px").arg(currentHeight + change), CSS_PRIORITY);
+ style.setProperty("height", TQString("%1px").arg(currentHeight + change), CSS_PRIORITY);
doc.updateRendering();
}
}