summaryrefslogtreecommitdiffstats
path: root/sidebar/listboxlink.cpp
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2016-03-25 20:03:28 +0100
committerSlávek Banko <slavek.banko@axis.cz>2016-03-25 20:03:28 +0100
commit2ee99ab520931c5efe91123c85ba10064a45e95d (patch)
treea367666e410de28d0f258aed77b11e17cafb28e4 /sidebar/listboxlink.cpp
parentcfa36e1a95e82492c17225ff376911abb3688f62 (diff)
downloadtde-style-baghira-2ee99ab520931c5efe91123c85ba10064a45e95d.tar.gz
tde-style-baghira-2ee99ab520931c5efe91123c85ba10064a45e95d.zip
Initial TQt conversion
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'sidebar/listboxlink.cpp')
-rw-r--r--sidebar/listboxlink.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/sidebar/listboxlink.cpp b/sidebar/listboxlink.cpp
index 47adb88..484fa12 100644
--- a/sidebar/listboxlink.cpp
+++ b/sidebar/listboxlink.cpp
@@ -1,23 +1,23 @@
#include <kiconloader.h>
#include "listboxlink.h"
-#include <qpainter.h>
-#include <qbitmap.h>
+#include <tqpainter.h>
+#include <tqbitmap.h>
#include "eject.xbm"
#include "lock.xbm"
-static QBitmap eject = QBitmap( eject_width, eject_height, eject_bits, true );
-static QBitmap locked = QBitmap( lock_width, lock_height, lock_bits, true );
+static TQBitmap eject = TQBitmap( eject_width, eject_height, eject_bits, true );
+static TQBitmap locked = TQBitmap( lock_width, lock_height, lock_bits, true );
-ListBoxLink::ListBoxLink( const QString & icon, uint size, const QString & title, const QString & url): QListBoxPixmap(KGlobal::iconLoader()->loadIcon(icon, KIcon::Desktop, size), title),url_(url),icon_(icon)
+ListBoxLink::ListBoxLink( const TQString & icon, uint size, const TQString & title, const TQString & url): TQListBoxPixmap(KGlobal::iconLoader()->loadIcon(icon, KIcon::Desktop, size), title),url_(url),icon_(icon)
{
}
-ListBoxLink::ListBoxLink( const QPixmap & pixmap, const QString & title, const QString & url) : QListBoxPixmap(pixmap, title), url_(url), icon_(0)
+ListBoxLink::ListBoxLink( const TQPixmap & pixmap, const TQString & title, const TQString & url) : TQListBoxPixmap(pixmap, title), url_(url), icon_(0)
{
}
-ListBoxLink::ListBoxLink(ListBoxLink & link) : QListBoxPixmap(*link.pixmap(), link.text()), url_(link.URL()), icon_(link.icon())
+ListBoxLink::ListBoxLink(ListBoxLink & link) : TQListBoxPixmap(*link.pixmap(), link.text()), url_(link.URL()), icon_(link.icon())
{
}
@@ -25,22 +25,22 @@ ListBoxLink::~ListBoxLink()
{
}
-void ListBoxLink::setURL(const QString & url)
+void ListBoxLink::setURL(const TQString & url)
{
url_ = url;
}
-void ListBoxLink::setIcon(const QString & icon)
+void ListBoxLink::setIcon(const TQString & icon)
{
icon_ = icon;
}
-int ListBoxLink::height ( const QListBox * lb ) const
+int ListBoxLink::height ( const TQListBox * lb ) const
{
- return (QListBoxPixmap::height ( lb ) + 4);
+ return (TQListBoxPixmap::height ( lb ) + 4);
}
-ListBoxDevice::ListBoxDevice(const QString & icon, uint size, const QString & title, const QString & url, const QString & name, const QString & mountPoint, bool mounted, bool ejectable, bool removable, int id) : ListBoxLink(icon, size, title, url), name_(name), mountPoint_(mountPoint), mounted_(mounted), ejectable_(ejectable), removable_(removable),id_(id)
+ListBoxDevice::ListBoxDevice(const TQString & icon, uint size, const TQString & title, const TQString & url, const TQString & name, const TQString & mountPoint, bool mounted, bool ejectable, bool removable, int id) : ListBoxLink(icon, size, title, url), name_(name), mountPoint_(mountPoint), mounted_(mounted), ejectable_(ejectable), removable_(removable),id_(id)
{
if (!eject.mask())
eject.setMask(eject);
@@ -48,7 +48,7 @@ ListBoxDevice::ListBoxDevice(const QString & icon, uint size, const QString & ti
locked.setMask(locked);
}
-ListBoxDevice::ListBoxDevice(const QPixmap & pixmap, const QString & title, const QString & url, const QString & name, const QString & mountPoint, bool mounted, bool ejectable, bool removable, int id) : ListBoxLink(pixmap, title, url), name_(name), mountPoint_(mountPoint), mounted_(mounted), ejectable_(ejectable), removable_(removable),id_(id)
+ListBoxDevice::ListBoxDevice(const TQPixmap & pixmap, const TQString & title, const TQString & url, const TQString & name, const TQString & mountPoint, bool mounted, bool ejectable, bool removable, int id) : ListBoxLink(pixmap, title, url), name_(name), mountPoint_(mountPoint), mounted_(mounted), ejectable_(ejectable), removable_(removable),id_(id)
{
if (!eject.mask())
eject.setMask(eject);
@@ -56,14 +56,14 @@ ListBoxDevice::ListBoxDevice(const QPixmap & pixmap, const QString & title, cons
locked.setMask(locked);
}
-int ListBoxDevice::width ( const QListBox * lb ) const
+int ListBoxDevice::width ( const TQListBox * lb ) const
{
if (ejectable_ && mounted_ && lb)
return lb->width();
return ListBoxLink::width(lb);
}
-void ListBoxDevice::paint( QPainter * p )
+void ListBoxDevice::paint( TQPainter * p )
{
if ((ejectable_ || removable_) && mounted_)
{