@ -78,7 +78,7 @@ DolphinDetailsView::DolphinDetailsView(DolphinView* parent) :
connect ( this , TQT_SIGNAL ( dropped ( TQDropEvent * , const KURL : : List & , const KURL & ) ) ,
parent , TQT_SLOT ( slotURLListDropped ( TQDropEvent * , const KURL : : List & , const KURL & ) ) ) ;
TQClipboard * clipboard = TQApplication : : tq clipboard( ) ;
TQClipboard * clipboard = TQApplication : : clipboard( ) ;
connect ( clipboard , TQT_SIGNAL ( dataChanged ( ) ) ,
this , TQT_SLOT ( slotUpdateDisabledItems ( ) ) ) ;
@ -441,7 +441,7 @@ void DolphinDetailsView::paintEmptyArea(TQPainter* painter, const TQRect& rect)
KFileDetailView : : paintEmptyArea ( painter , rect ) ;
}
else {
const TQBrush brush ( tq colorGroup( ) . background ( ) ) ;
const TQBrush brush ( colorGroup( ) . background ( ) ) ;
painter - > fillRect ( rect , brush ) ;
}
}
@ -465,9 +465,9 @@ void DolphinDetailsView::drawRubber()
TQPoint point ( m_rubber - > x ( ) , m_rubber - > y ( ) ) ;
point = contentsToViewport ( point ) ;
tq style( ) . tqdrawPrimitive ( TQStyle : : PE_FocusRect , & p ,
style( ) . tqdrawPrimitive ( TQStyle : : PE_FocusRect , & p ,
TQRect ( point . x ( ) , point . y ( ) , m_rubber - > width ( ) , m_rubber - > height ( ) ) ,
tq colorGroup( ) , TQStyle : : Style_Default , tq colorGroup( ) . base ( ) ) ;
colorGroup( ) , TQStyle : : Style_Default , colorGroup( ) . base ( ) ) ;
p . end ( ) ;
}
@ -489,7 +489,7 @@ void DolphinDetailsView::slotActivationUpdate()
update ( ) ;
// TODO: there must be a simpler way to say
// "update all tq children"
// "update all children"
const TQObjectList list = childrenListObject ( ) ;
if ( list . isEmpty ( ) ) {
return ;
@ -553,7 +553,7 @@ void DolphinDetailsView::slotAutoScroll()
// select all items which intersect with the rubber, deselect all others
bool bottomReached = false ;
while ( ( item ! = 0 ) & & ! bottomReached ) {
TQRect rect ( tq itemRect( item ) ) ;
TQRect rect ( itemRect( item ) ) ;
rect . setWidth ( filenameWidth ( item ) ) ;
rect = TQRect ( viewportToContents ( rect . topLeft ( ) ) ,
viewportToContents ( rect . bottomRight ( ) ) ) ;
@ -710,10 +710,10 @@ DolphinDetailsView::DolphinListViewItem::~DolphinListViewItem()
}
void DolphinDetailsView : : DolphinListViewItem : : paintCell ( TQPainter * painter ,
const TQColorGroup & tq colorGroup,
const TQColorGroup & colorGroup,
int column ,
int cellWidth ,
int tq alignment)
int alignment)
{
const TQListView * view = listView ( ) ;
const bool isActive = TQT_BASE_OBJECT ( view - > parent ( ) ) = = TQT_BASE_OBJECT ( Dolphin : : mainWin ( ) . activeView ( ) ) ;
@ -721,30 +721,30 @@ void DolphinDetailsView::DolphinListViewItem::paintCell(TQPainter* painter,
// Per default the selection is drawn above the whole width of the item. As a consistent
// behavior with the icon view is wanted, only the the column containing the file name
// should be shown as selected.
TQColorGroup defaultColorGroup ( tq colorGroup) ;
const TQColor highlightColor ( isActive ? backgroundColor ( column ) : view - > tq colorGroup( ) . background ( ) ) ;
TQColorGroup defaultColorGroup ( colorGroup) ;
const TQColor highlightColor ( isActive ? backgroundColor ( column ) : view - > colorGroup( ) . background ( ) ) ;
defaultColorGroup . setColor ( TQColorGroup : : Highlight , highlightColor ) ;
defaultColorGroup . setColor ( TQColorGroup : : HighlightedText , tq colorGroup. color ( TQColorGroup : : Text ) ) ;
KFileListViewItem : : paintCell ( painter , defaultColorGroup , column , cellWidth , tq alignment) ;
defaultColorGroup . setColor ( TQColorGroup : : HighlightedText , colorGroup. color ( TQColorGroup : : Text ) ) ;
KFileListViewItem : : paintCell ( painter , defaultColorGroup , column , cellWidth , alignment) ;
if ( column = = 0 ) {
// draw the selection only on the first column
TQListView * parent = listView ( ) ;
const int itemWidth = width ( parent - > fontMetrics ( ) , parent , 0 ) ;
if ( isActive ) {
KFileListViewItem : : paintCell ( painter , tq colorGroup, column , itemWidth , tq alignment) ;
KFileListViewItem : : paintCell ( painter , colorGroup, column , itemWidth , alignment) ;
}
else {
TQListViewItem : : paintCell ( painter , tq colorGroup, column , itemWidth , tq alignment) ;
TQListViewItem : : paintCell ( painter , colorGroup, column , itemWidth , alignment) ;
}
}
}
else {
if ( isActive ) {
KFileListViewItem : : paintCell ( painter , tq colorGroup, column , cellWidth , tq alignment) ;
KFileListViewItem : : paintCell ( painter , colorGroup, column , cellWidth , alignment) ;
}
else {
TQListViewItem : : paintCell ( painter , tq colorGroup, column , cellWidth , tq alignment) ;
TQListViewItem : : paintCell ( painter , colorGroup, column , cellWidth , alignment) ;
}
}
@ -756,7 +756,7 @@ void DolphinDetailsView::DolphinListViewItem::paintCell(TQPainter* painter,
}
void DolphinDetailsView : : DolphinListViewItem : : paintFocus ( TQPainter * painter ,
const TQColorGroup & tq colorGroup,
const TQColorGroup & colorGroup,
const TQRect & rect )
{
// draw the focus consistently with the selection (see implementation notes
@ -771,7 +771,7 @@ void DolphinDetailsView::DolphinListViewItem::paintFocus(TQPainter* painter,
TQRect focusRect ( rect ) ;
focusRect . setWidth ( visibleWidth ) ;
KFileListViewItem : : paintFocus ( painter , tq colorGroup, focusRect ) ;
KFileListViewItem : : paintFocus ( painter , colorGroup, focusRect ) ;
}
int DolphinDetailsView : : filenameWidth ( const TQListViewItem * item ) const