summaryrefslogtreecommitdiffstats
path: root/kipi-plugins/picasawebexport/picasawebviewitem.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-18 06:46:40 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-18 06:46:40 +0000
commit7c19562ad065b6729bac8eb9b40dfe0452a72272 (patch)
tree33325d1e02ecc9ca614c7209296f8f796a1c3478 /kipi-plugins/picasawebexport/picasawebviewitem.cpp
parenta65baa328fac0a1ce12971fef8d998ce7bfbe237 (diff)
downloadkipi-plugins-7c19562ad065b6729bac8eb9b40dfe0452a72272.tar.gz
kipi-plugins-7c19562ad065b6729bac8eb9b40dfe0452a72272.zip
TQt4 port kipi-plugins
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/libraries/kipi-plugins@1232561 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kipi-plugins/picasawebexport/picasawebviewitem.cpp')
-rw-r--r--kipi-plugins/picasawebexport/picasawebviewitem.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/kipi-plugins/picasawebexport/picasawebviewitem.cpp b/kipi-plugins/picasawebexport/picasawebviewitem.cpp
index 817b3ff..c847743 100644
--- a/kipi-plugins/picasawebexport/picasawebviewitem.cpp
+++ b/kipi-plugins/picasawebexport/picasawebviewitem.cpp
@@ -21,10 +21,10 @@
*
* ============================================================ */
-// Qt includes.
+// TQt includes.
-#include <qpainter.h>
-#include <qpixmap.h>
+#include <tqpainter.h>
+#include <tqpixmap.h>
// Local includes.
@@ -33,23 +33,23 @@
namespace KIPIPicasawebExportPlugin
{
-void GAlbumViewItem::paintCell(QPainter* p, const QColorGroup& cg, int column, int width, int)
+void GAlbumViewItem::paintCell(TQPainter* p, const TQColorGroup& cg, int column, int width, int)
{
if (!p)
return;
- QListView *lv = listView();
+ TQListView *lv = listView();
if (!lv)
return;
- QFontMetrics fm(p->fontMetrics());
+ TQFontMetrics fm(p->fontMetrics());
if (isSelected())
p->fillRect(0, 0, width, height(), cg.highlight());
else
p->fillRect(0, 0, width, height(), cg.base());
- const QPixmap * icon = pixmap( column );
+ const TQPixmap * icon = pixmap( column );
int iconWidth = 0;
if (icon)
@@ -67,21 +67,21 @@ void GAlbumViewItem::paintCell(QPainter* p, const QColorGroup& cg, int column, i
int r = lv->itemMargin() + iconWidth;
int h = lv->fontMetrics().height() + 2;
- p->drawText(r, 0, width-r, h, Qt::AlignVCenter, album.title);
+ p->drawText(r, 0, width-r, h, TQt::AlignVCenter, album.title);
- QFont fn(lv->font());
+ TQFont fn(lv->font());
fn.setPointSize(fn.pointSize()-2);
fn.setItalic(true);
p->setFont(fn);
- p->setPen(isSelected() ? cg.highlightedText() : Qt::gray);
- p->drawText(r, h, width-r, h, Qt::AlignVCenter, album.name);
+ p->setPen(isSelected() ? cg.highlightedText() : TQt::gray);
+ p->drawText(r, h, width-r, h, TQt::AlignVCenter, album.name);
}
void GAlbumViewItem::setup()
{
int h = listView()->fontMetrics().height();
int margin = 4;
- setHeight(QMAX(2*h + margin, 32));
+ setHeight(TQMAX(2*h + margin, 32));
}
} // namespace KIPIPicasawebExportPlugin