summaryrefslogtreecommitdiffstats
path: root/kipi-plugins/sync/galleryviewitem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kipi-plugins/sync/galleryviewitem.cpp')
-rw-r--r--kipi-plugins/sync/galleryviewitem.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/kipi-plugins/sync/galleryviewitem.cpp b/kipi-plugins/sync/galleryviewitem.cpp
index 4a847ca..35ab07f 100644
--- a/kipi-plugins/sync/galleryviewitem.cpp
+++ b/kipi-plugins/sync/galleryviewitem.cpp
@@ -19,8 +19,8 @@
*
* ============================================================ */
-#include <qpainter.h>
-#include <qpixmap.h>
+#include <tqpainter.h>
+#include <tqpixmap.h>
#include "galleryviewitem.h"
#include "gallerytalker.h"
@@ -28,23 +28,23 @@
namespace KIPIGalleryExportPlugin
{
-void GAlbumViewItem::paintCell(QPainter * p, const QColorGroup & cg,
+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)
@@ -68,18 +68,18 @@ void GAlbumViewItem::paintCell(QPainter * p, const QColorGroup & cg,
// We display things slightly differently depending on version.
if (GalleryTalker::isGallery2())
{
- p->drawText(r, h/2, width-r, h, Qt::AlignVCenter, album.title);
+ p->drawText(r, h/2, width-r, h, TQt::AlignVCenter, album.title);
}
else
{
- 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);
}
}
@@ -87,7 +87,7 @@ void GAlbumViewItem::setup()
{
int h = listView()->fontMetrics().height();
int margin = 4;
- setHeight( QMAX(2*h + margin, 32) );
+ setHeight( TQMAX(2*h + margin, 32) );
}
}