* Allow Konqueror to compile with new libs-provided networkstatusindicator

* KDM fixes


git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1172005 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 14 years ago
parent 88a160cd94
commit d201c32d27

@ -84,11 +84,13 @@ class UserListView : public KListView {
addColumn( TQString::null ); addColumn( TQString::null );
setColumnAlignment( 0, AlignVCenter ); setColumnAlignment( 0, AlignVCenter );
setResizeMode( TQListView::LastColumn ); setResizeMode( TQListView::LastColumn );
if (themed) { // FIXME: This must be configurable, so disable
setBackgroundMode( Qt::NoBackground ); // painting of list background for now.
viewport()->setBackgroundMode( Qt::NoBackground ); // if (themed) {
setFrameStyle( TQFrame::NoFrame ); // setBackgroundMode( Qt::NoBackground );
} // viewport()->setBackgroundMode( Qt::NoBackground );
// setFrameStyle( TQFrame::NoFrame );
// }
} }
bool themed; bool themed;
@ -127,6 +129,10 @@ public:
if (!themed) if (!themed)
return KListView::paintEmptyArea(p, rect ); return KListView::paintEmptyArea(p, rect );
// FIXME: This must be configurable, so disable
// painting of list background for now.
return KListView::paintEmptyArea(p, rect );
const TQPixmap *pm = paletteBackgroundPixmap(); const TQPixmap *pm = paletteBackgroundPixmap();
if (!pm || pm->isNull()) if (!pm || pm->isNull())
return; return;
@ -1049,7 +1055,7 @@ KThemedGreeter::pluginSetup()
inherited::pluginSetup(); inherited::pluginSetup();
if (userView && verify->entitiesLocal() && verify->entityPresettable() && userlist_rect) { if (userView && verify->entitiesLocal() && verify->entityPresettable() && userlist_rect) {
userView->setMaximumHeight( userView->sumHeight() ); // userView->setMaximumHeight( userView->sumHeight() );
userlist_rect->setWidget( userView ); userlist_rect->setWidget( userView );
} else { } else {
if (userView) if (userView)

@ -283,13 +283,17 @@ KdmItem::paint( TQPainter *p, const TQRect &rect )
return; return;
if (myWidget || (myLayoutItem && myLayoutItem->widget())) { if (myWidget || (myLayoutItem && myLayoutItem->widget())) {
// KListView because it's missing a Q_OBJECT // KListView because it's missing a Q_OBJECT'
if ( myWidget && myWidget->isA( "KListView" ) ) { // FIXME: This is a nice idea intheory, but in practice it is
TQPixmap copy( myWidget->size() ); // very confusing for the user not to see then empty list box
kdDebug() << myWidget->geometry() << " " << area << " " << myWidget->size() << endl; // delineated from the rest of the greeter.
bitBlt( &copy, TQPoint( 0, 0), p->device(), myWidget->geometry(), Qt::CopyROP ); // Maybe set a darker version of the background instead of an exact copy?
myWidget->setPaletteBackgroundPixmap( copy ); // if ( myWidget && myWidget->isA( "KListView" ) ) {
} // TQPixmap copy( myWidget->size() );
// kdDebug() << myWidget->geometry() << " " << area << " " << myWidget->size() << endl;
// bitBlt( &copy, TQPoint( 0, 0), p->device(), myWidget->geometry(), Qt::CopyROP );
// myWidget->setPaletteBackgroundPixmap( copy );
// }
return; return;
} }

@ -48,8 +48,8 @@ noinst_HEADERS = KonqMainWindowIface.h KonqViewIface.h delayedinitializer.h \
konq_misc.h konq_openurlrequest.h konq_profiledlg.h konq_run.h \ konq_misc.h konq_openurlrequest.h konq_profiledlg.h konq_run.h \
konq_view.h konq_viewmgr.h konq_extensionmanager.h version.h konq_view.h konq_viewmgr.h konq_extensionmanager.h version.h
konqueror_la_LDFLAGS = -module $(KDE_PLUGIN) $(all_libraries) -lconnectionmanager konqueror_la_LDFLAGS = -module $(KDE_PLUGIN) $(all_libraries) -lconnectionmanager -lnetworkstatus
konqueror_la_LIBADD = ../libkonq/libkonq.la libkonqueror_intern.la $(LIBMALLOC) $(LIB_KUTILS) -lconnectionmanager konqueror_la_LIBADD = ../libkonq/libkonq.la libkonqueror_intern.la $(LIBMALLOC) $(LIB_KUTILS) -lconnectionmanager -lnetworkstatus
# Hmm, this experiment of a static konq failed, don't trust it... # Hmm, this experiment of a static konq failed, don't trust it...
# (but feel free to fix it :) # (but feel free to fix it :)

Loading…
Cancel
Save