summaryrefslogtreecommitdiffstats
path: root/tdm/kfrontend/kgreeter.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:11:21 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:11:21 -0600
commitf537c21b68e08f649b1b297bce8f3904603137e0 (patch)
treefb33065387509dea898c90022ddec9c3f8ede86d /tdm/kfrontend/kgreeter.cpp
parentdc5f267664506a312203c26bfe9001a448b0bb0f (diff)
downloadtdebase-f537c21b68e08f649b1b297bce8f3904603137e0.tar.gz
tdebase-f537c21b68e08f649b1b297bce8f3904603137e0.zip
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'tdm/kfrontend/kgreeter.cpp')
-rw-r--r--tdm/kfrontend/kgreeter.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/tdm/kfrontend/kgreeter.cpp b/tdm/kfrontend/kgreeter.cpp
index c2fb0c6f5..809f309ad 100644
--- a/tdm/kfrontend/kgreeter.cpp
+++ b/tdm/kfrontend/kgreeter.cpp
@@ -92,10 +92,10 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#define FIFO_FILE "/tmp/tdesocket-global/tdm/tdmctl-%1"
#define FIFO_SAK_FILE "/tmp/tdesocket-global/tdm/tdmctl-sak-%1"
-class UserListView : public KListView {
+class UserListView : public TDEListView {
public:
UserListView( bool _them, TQWidget *parent = 0, const char *name = 0 )
- : KListView( parent, name )
+ : TDEListView( parent, name )
, themed(_them), cachedSizeHint( -1, 0 )
{
setSizePolicy( TQSizePolicy::Preferred, TQSizePolicy::Ignored );
@@ -127,7 +127,7 @@ public:
virtual TQSize sizeHint() const
{
if (themed)
- return KListView::sizeHint();
+ return TDEListView::sizeHint();
if (!cachedSizeHint.isValid()) {
constPolish();
@@ -146,11 +146,11 @@ public:
virtual void paintEmptyArea ( TQPainter * p, const TQRect & rect )
{
if (!themed)
- return KListView::paintEmptyArea(p, rect );
+ return TDEListView::paintEmptyArea(p, rect );
// FIXME: This must be configurable, so disable
// painting of list background for now.
- return KListView::paintEmptyArea(p, rect );
+ return TDEListView::paintEmptyArea(p, rect );
const TQPixmap *pm = TQT_TQPIXMAP_CONST(paletteBackgroundPixmap());
if (!pm || pm->isNull())
@@ -337,11 +337,11 @@ void KGreeter::readFacesList()
}
}
-class UserListViewItem : public KListViewItem {
+class UserListViewItem : public TDEListViewItem {
public:
UserListViewItem( UserListView *parent, const TQString &text,
const TQPixmap &pixmap, const TQString &username )
- : KListViewItem( parent )
+ : TDEListViewItem( parent )
, login( username )
{
setPixmap( 0, pixmap );
@@ -355,7 +355,7 @@ class UserListViewItem : public KListViewItem {
if (((UserListView*)listView())->themed)
TQListViewItem::paintCell(p, cg, column, width, alignment);
else
- KListViewItem::paintCell(p, cg, column, width, alignment);
+ TDEListViewItem::paintCell(p, cg, column, width, alignment);
}
TQString login;