|
|
@ -44,7 +44,7 @@ Smb4KSharesListViewItem::Smb4KSharesListViewItem( Smb4KShare *share, bool mountp
|
|
|
|
setDropEnabled( true );
|
|
|
|
setDropEnabled( true );
|
|
|
|
setDragEnabled( true );
|
|
|
|
setDragEnabled( true );
|
|
|
|
|
|
|
|
|
|
|
|
m_loader = new KIconLoader();
|
|
|
|
m_loader = new TDEIconLoader();
|
|
|
|
|
|
|
|
|
|
|
|
setupItem( m_share, m_mountpoint );
|
|
|
|
setupItem( m_share, m_mountpoint );
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -67,21 +67,21 @@ void Smb4KSharesListViewItem::setupItem( const Smb4KShare &share, bool mountpoin
|
|
|
|
{
|
|
|
|
{
|
|
|
|
TQPixmap pix;
|
|
|
|
TQPixmap pix;
|
|
|
|
|
|
|
|
|
|
|
|
int icon_state = m_share.isForeign() ? KIcon::DisabledState : KIcon::DefaultState;
|
|
|
|
int icon_state = m_share.isForeign() ? TDEIcon::DisabledState : TDEIcon::DefaultState;
|
|
|
|
|
|
|
|
|
|
|
|
if ( m_share.isBroken() )
|
|
|
|
if ( m_share.isBroken() )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
TQImage over = m_loader->loadIcon( "button_cancel", KIcon::Small,
|
|
|
|
TQImage over = m_loader->loadIcon( "button_cancel", TDEIcon::Small,
|
|
|
|
0, icon_state, 0L, false ).convertToImage();
|
|
|
|
0, icon_state, 0L, false ).convertToImage();
|
|
|
|
TQImage src = m_loader->loadIcon( "hdd_mount", KIcon::Small,
|
|
|
|
TQImage src = m_loader->loadIcon( "hdd_mount", TDEIcon::Small,
|
|
|
|
0, icon_state, 0L, false ).convertToImage();
|
|
|
|
0, icon_state, 0L, false ).convertToImage();
|
|
|
|
|
|
|
|
|
|
|
|
TQImage over_desk = m_loader->loadIcon( "button_cancel", KIcon::Desktop,
|
|
|
|
TQImage over_desk = m_loader->loadIcon( "button_cancel", TDEIcon::Desktop,
|
|
|
|
0, icon_state, 0L, false ).convertToImage();
|
|
|
|
0, icon_state, 0L, false ).convertToImage();
|
|
|
|
TQImage src_desk = m_loader->loadIcon( "hdd_mount", KIcon::Desktop,
|
|
|
|
TQImage src_desk = m_loader->loadIcon( "hdd_mount", TDEIcon::Desktop,
|
|
|
|
0, icon_state, 0L, false ).convertToImage();
|
|
|
|
0, icon_state, 0L, false ).convertToImage();
|
|
|
|
|
|
|
|
|
|
|
|
KIconEffect e;
|
|
|
|
TDEIconEffect e;
|
|
|
|
e.semiTransparent( over );
|
|
|
|
e.semiTransparent( over );
|
|
|
|
e.overlay( src, over );
|
|
|
|
e.overlay( src, over );
|
|
|
|
e.semiTransparent( over_desk );
|
|
|
|
e.semiTransparent( over_desk );
|
|
|
@ -92,10 +92,10 @@ void Smb4KSharesListViewItem::setupItem( const Smb4KShare &share, bool mountpoin
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
pix = m_loader->loadIcon( "hdd_mount", KIcon::Small,
|
|
|
|
pix = m_loader->loadIcon( "hdd_mount", TDEIcon::Small,
|
|
|
|
0, icon_state, 0L, false );
|
|
|
|
0, icon_state, 0L, false );
|
|
|
|
|
|
|
|
|
|
|
|
m_desktop_pixmap = m_loader->loadIcon( "hdd_mount", KIcon::Desktop,
|
|
|
|
m_desktop_pixmap = m_loader->loadIcon( "hdd_mount", TDEIcon::Desktop,
|
|
|
|
0, icon_state, 0L, false );
|
|
|
|
0, icon_state, 0L, false );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|