summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2013-02-04 14:09:13 -0600
committerTimothy Pearson <[email protected]>2013-02-04 14:09:13 -0600
commit2ed05c014fc2fd27fd1a6ab133785dd62fac019c (patch)
treec2cdf51bbf67f20145e87fe7bf38a3e30d6f2d06
parent7a5d9e94f14eac16e739a9d6d2d3fc0d1d4ef30c (diff)
downloadsmb4k-2ed05c014fc2fd27fd1a6ab133785dd62fac019c.tar.gz
smb4k-2ed05c014fc2fd27fd1a6ab133785dd62fac019c.zip
Rename KIcon to enhance compatibility with KDE4
-rw-r--r--smb4k/browser/smb4knetworkbrowseritem.cpp8
-rw-r--r--smb4k/dialogs/smb4kpreviewdialog.cpp16
-rw-r--r--smb4k/dialogs/smb4kpreviewdialog.h2
-rw-r--r--smb4k/iconview/smb4ksharesiconview.cpp14
-rw-r--r--smb4k/iconview/smb4ksharesiconview.h4
-rw-r--r--smb4k/iconview/smb4ksharesiconview_part.cpp2
-rw-r--r--smb4k/iconview/smb4ksharesiconviewitem.cpp14
-rw-r--r--smb4k/iconview/smb4ksharesiconviewitem.h4
-rw-r--r--smb4k/listview/smb4kshareslistviewitem.cpp18
-rw-r--r--smb4k/listview/smb4kshareslistviewitem.h2
-rw-r--r--smb4k/searchdlg/smb4ksearchdialogitem.cpp2
-rw-r--r--smb4k/smb4ksystemtray.cpp22
12 files changed, 54 insertions, 54 deletions
diff --git a/smb4k/browser/smb4knetworkbrowseritem.cpp b/smb4k/browser/smb4knetworkbrowseritem.cpp
index 313918c..4153c14 100644
--- a/smb4k/browser/smb4knetworkbrowseritem.cpp
+++ b/smb4k/browser/smb4knetworkbrowseritem.cpp
@@ -89,13 +89,13 @@ void Smb4KNetworkBrowserItem::setIcon()
{
if ( m_mounted )
{
- m_desktop_icon = DesktopIcon( "folder_open", 0, KIcon::ActiveState );
- setPixmap( 0, SmallIcon( "folder_open", 0, KIcon::ActiveState ) );
+ m_desktop_icon = DesktopIcon( "folder_open", 0, TDEIcon::ActiveState );
+ setPixmap( 0, SmallIcon( "folder_open", 0, TDEIcon::ActiveState ) );
}
else
{
- m_desktop_icon = DesktopIcon( "folder", 0, KIcon::DefaultState );
- setPixmap( 0, SmallIcon( "folder", 0, KIcon::DefaultState ) );
+ m_desktop_icon = DesktopIcon( "folder", 0, TDEIcon::DefaultState );
+ setPixmap( 0, SmallIcon( "folder", 0, TDEIcon::DefaultState ) );
}
}
break;
diff --git a/smb4k/dialogs/smb4kpreviewdialog.cpp b/smb4k/dialogs/smb4kpreviewdialog.cpp
index daef3f7..915f573 100644
--- a/smb4k/dialogs/smb4kpreviewdialog.cpp
+++ b/smb4k/dialogs/smb4kpreviewdialog.cpp
@@ -94,10 +94,10 @@ void Smb4KPreviewDialog::setupView()
TQFrame *frame = plainPage();
TQGridLayout *layout = new TQGridLayout( frame );
- m_view = new KIconView( frame, 0, 0 );
- m_view->setItemTextPos( KIconView::Right );
- m_view->setResizeMode( KIconView::Adjust );
- m_view->setArrangement( KIconView::TopToBottom );
+ m_view = new TDEIconView( frame, 0, 0 );
+ m_view->setItemTextPos( TDEIconView::Right );
+ m_view->setResizeMode( TDEIconView::Adjust );
+ m_view->setArrangement( TDEIconView::TopToBottom );
m_view->setSpacing( 1 );
m_view->setGridX( 200 );
m_view->setWordWrapIconText( false );
@@ -188,7 +188,7 @@ void Smb4KPreviewDialog::slotReceivedData( Smb4KPreviewItem *item )
{
case Smb4KPreviewItem::File:
{
- KIconViewItem *view_item = new KIconViewItem( m_view, (*it).second, SmallIcon( "file" ) );
+ TDEIconViewItem *view_item = new TDEIconViewItem( m_view, (*it).second, SmallIcon( "file" ) );
view_item->setKey( TQString( "[file]_%1" ).arg( (*it).second ) );
break;
@@ -198,7 +198,7 @@ void Smb4KPreviewDialog::slotReceivedData( Smb4KPreviewItem *item )
// We do not want to show the '.' and '..' directories.
if ( TQString::compare( (*it).second, "." ) != 0 && TQString::compare( (*it).second, ".." ) != 0 )
{
- KIconViewItem *view_item = new KIconViewItem( m_view, (*it).second, SmallIcon( "folder" ) );
+ TDEIconViewItem *view_item = new TDEIconViewItem( m_view, (*it).second, SmallIcon( "folder" ) );
view_item->setKey( TQString( "[directory]_%1" ).arg( (*it).second ) );
}
@@ -208,7 +208,7 @@ void Smb4KPreviewDialog::slotReceivedData( Smb4KPreviewItem *item )
{
if ( Smb4KSettings::previewHiddenItems() )
{
- KIconViewItem *view_item = new KIconViewItem( m_view, (*it).second, SmallIcon( "file" ) );
+ TDEIconViewItem *view_item = new TDEIconViewItem( m_view, (*it).second, SmallIcon( "file" ) );
view_item->setKey( TQString( "[file]_%1" ).arg( (*it).second ) );
}
@@ -219,7 +219,7 @@ void Smb4KPreviewDialog::slotReceivedData( Smb4KPreviewItem *item )
if ( Smb4KSettings::previewHiddenItems() &&
TQString::compare( (*it).second, "." ) != 0 && TQString::compare( (*it).second, ".." ) != 0 )
{
- KIconViewItem *view_item = new KIconViewItem( m_view, (*it).second, SmallIcon( "folder" ) );
+ TDEIconViewItem *view_item = new TDEIconViewItem( m_view, (*it).second, SmallIcon( "folder" ) );
view_item->setKey( TQString( "[directory]_%1" ).arg( (*it).second ) );
}
diff --git a/smb4k/dialogs/smb4kpreviewdialog.h b/smb4k/dialogs/smb4kpreviewdialog.h
index 561cc2f..14d567b 100644
--- a/smb4k/dialogs/smb4kpreviewdialog.h
+++ b/smb4k/dialogs/smb4kpreviewdialog.h
@@ -132,7 +132,7 @@ class Smb4KPreviewDialog : public KDialogBase
/**
* The icon view.
*/
- KIconView *m_view;
+ TDEIconView *m_view;
/**
* The toolbar.
diff --git a/smb4k/iconview/smb4ksharesiconview.cpp b/smb4k/iconview/smb4ksharesiconview.cpp
index c61d550..f7a7d96 100644
--- a/smb4k/iconview/smb4ksharesiconview.cpp
+++ b/smb4k/iconview/smb4ksharesiconview.cpp
@@ -39,17 +39,17 @@
Smb4KSharesIconView::Smb4KSharesIconView( TQWidget *parent, const char *name )
-: KIconView( parent, name )
+: TDEIconView( parent, name )
{
- setSelectionMode( KIconView::Single ); // If this is changed, revise dragObject() function.
- setResizeMode( KIconView::Adjust );
+ setSelectionMode( TDEIconView::Single ); // If this is changed, revise dragObject() function.
+ setResizeMode( TDEIconView::Adjust );
setAutoArrange( true );
setSorting( true, true );
setItemsMovable( false );
setAcceptDrops( true );
- setItemTextPos( KIconView::Bottom );
+ setItemTextPos( TDEIconView::Bottom );
setMaxItemWidth( 150 );
- setArrangement( KIconView::LeftToRight );
+ setArrangement( TDEIconView::LeftToRight );
setWordWrapIconText( true );
m_tooltip = NULL;
@@ -108,7 +108,7 @@ void Smb4KSharesIconView::startDrag()
return;
}
- KIconView::startDrag();
+ TDEIconView::startDrag();
}
@@ -224,7 +224,7 @@ void Smb4KSharesIconView::contentsMouseMoveEvent( TQMouseEvent *e )
}
}
- KIconView::contentsMouseMoveEvent( e );
+ TDEIconView::contentsMouseMoveEvent( e );
}
diff --git a/smb4k/iconview/smb4ksharesiconview.h b/smb4k/iconview/smb4ksharesiconview.h
index aa68ae1..1c5b9a3 100644
--- a/smb4k/iconview/smb4ksharesiconview.h
+++ b/smb4k/iconview/smb4ksharesiconview.h
@@ -48,7 +48,7 @@ class Smb4KSharesIconViewToolTip;
* @author Alexander Reinholdt <[email protected]>
*/
-class Smb4KSharesIconView : public KIconView
+class Smb4KSharesIconView : public TDEIconView
{
Q_OBJECT
@@ -112,7 +112,7 @@ class Smb4KSharesIconView : public KIconView
protected slots:
/**
- * This slot is connected to KIconView::pressed() and clears the selection
+ * This slot is connected to TDEIconView::pressed() and clears the selection
* if the user clicked on the viewport.
*
* @param item The TQIconViewItem that the user clicked or NULL
diff --git a/smb4k/iconview/smb4ksharesiconview_part.cpp b/smb4k/iconview/smb4ksharesiconview_part.cpp
index b3a0a04..bcdca86 100644
--- a/smb4k/iconview/smb4ksharesiconview_part.cpp
+++ b/smb4k/iconview/smb4ksharesiconview_part.cpp
@@ -193,7 +193,7 @@ void Smb4KSharesIconViewPart::customEvent( TQCustomEvent *e )
}
case EVENT_SET_FOCUS:
{
- KIconView *view = static_cast<KIconView *>( m_widget );
+ TDEIconView *view = static_cast<TDEIconView *>( m_widget );
if ( view->count() != 0 )
{
diff --git a/smb4k/iconview/smb4ksharesiconviewitem.cpp b/smb4k/iconview/smb4ksharesiconviewitem.cpp
index bbbbd2b..1424f85 100644
--- a/smb4k/iconview/smb4ksharesiconviewitem.cpp
+++ b/smb4k/iconview/smb4ksharesiconviewitem.cpp
@@ -36,13 +36,13 @@
Smb4KSharesIconViewItem::Smb4KSharesIconViewItem( Smb4KShare *share, bool mountpoint,
Smb4KSharesIconView *parent )
-: KIconViewItem( parent, TQString() ), m_share( *share ), m_mountpoint( mountpoint ),
+: TDEIconViewItem( parent, TQString() ), m_share( *share ), m_mountpoint( mountpoint ),
m_initial_setup( false )
{
setDropEnabled( true );
setDragEnabled( true );
- m_loader = new KIconLoader();
+ m_loader = new TDEIconLoader();
setupItem( m_share, m_mountpoint );
}
@@ -88,16 +88,16 @@ void Smb4KSharesIconViewItem::setupItem( const Smb4KShare &share, bool mountpoin
{
if ( !m_initial_setup || m_share.isBroken() != share.isBroken() )
{
- int icon_state = m_share.isForeign() ? KIcon::DisabledState : KIcon::DefaultState;
+ int icon_state = m_share.isForeign() ? TDEIcon::DisabledState : TDEIcon::DefaultState;
if ( m_share.isBroken() )
{
- TQImage over = m_loader->loadIcon( "button_cancel", KIcon::Desktop,
+ TQImage over = m_loader->loadIcon( "button_cancel", TDEIcon::Desktop,
0, icon_state, 0L, false ).convertToImage();
- TQImage src = m_loader->loadIcon( "hdd_mount", KIcon::Desktop,
+ TQImage src = m_loader->loadIcon( "hdd_mount", TDEIcon::Desktop,
0, icon_state, 0L, false ).convertToImage();
- KIconEffect e;
+ TDEIconEffect e;
e.semiTransparent( over );
e.overlay( src, over );
@@ -105,7 +105,7 @@ void Smb4KSharesIconViewItem::setupItem( const Smb4KShare &share, bool mountpoin
}
else
{
- m_pixmap = m_loader->loadIcon( "hdd_mount", KIcon::Desktop,
+ m_pixmap = m_loader->loadIcon( "hdd_mount", TDEIcon::Desktop,
0, icon_state, 0L, false );
}
diff --git a/smb4k/iconview/smb4ksharesiconviewitem.h b/smb4k/iconview/smb4ksharesiconviewitem.h
index 9be9502..a85798f 100644
--- a/smb4k/iconview/smb4ksharesiconviewitem.h
+++ b/smb4k/iconview/smb4ksharesiconviewitem.h
@@ -51,7 +51,7 @@ class Smb4KSharesIconView;
* @author Alexander Reinholdt <[email protected]>
*/
-class Smb4KSharesIconViewItem : public KIconViewItem
+class Smb4KSharesIconViewItem : public TDEIconViewItem
{
public:
/**
@@ -161,7 +161,7 @@ class Smb4KSharesIconViewItem : public KIconViewItem
/**
* The icon loader for this item.
*/
- KIconLoader *m_loader;
+ TDEIconLoader *m_loader;
/**
* The desktop pixmap
diff --git a/smb4k/listview/smb4kshareslistviewitem.cpp b/smb4k/listview/smb4kshareslistviewitem.cpp
index 213bbad..c7616a5 100644
--- a/smb4k/listview/smb4kshareslistviewitem.cpp
+++ b/smb4k/listview/smb4kshareslistviewitem.cpp
@@ -44,7 +44,7 @@ Smb4KSharesListViewItem::Smb4KSharesListViewItem( Smb4KShare *share, bool mountp
setDropEnabled( true );
setDragEnabled( true );
- m_loader = new KIconLoader();
+ m_loader = new TDEIconLoader();
setupItem( m_share, m_mountpoint );
}
@@ -67,21 +67,21 @@ void Smb4KSharesListViewItem::setupItem( const Smb4KShare &share, bool mountpoin
{
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() )
{
- TQImage over = m_loader->loadIcon( "button_cancel", KIcon::Small,
+ TQImage over = m_loader->loadIcon( "button_cancel", TDEIcon::Small,
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();
- 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();
- 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();
- KIconEffect e;
+ TDEIconEffect e;
e.semiTransparent( over );
e.overlay( src, over );
e.semiTransparent( over_desk );
@@ -92,10 +92,10 @@ void Smb4KSharesListViewItem::setupItem( const Smb4KShare &share, bool mountpoin
}
else
{
- pix = m_loader->loadIcon( "hdd_mount", KIcon::Small,
+ pix = m_loader->loadIcon( "hdd_mount", TDEIcon::Small,
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 );
}
diff --git a/smb4k/listview/smb4kshareslistviewitem.h b/smb4k/listview/smb4kshareslistviewitem.h
index ae12d3d..0bece63 100644
--- a/smb4k/listview/smb4kshareslistviewitem.h
+++ b/smb4k/listview/smb4kshareslistviewitem.h
@@ -192,7 +192,7 @@ class Smb4KSharesListViewItem : public TDEListViewItem
/**
* The icon loader for this item.
*/
- KIconLoader *m_loader;
+ TDEIconLoader *m_loader;
/**
* The desktop pixmap
diff --git a/smb4k/searchdlg/smb4ksearchdialogitem.cpp b/smb4k/searchdlg/smb4ksearchdialogitem.cpp
index dfc374c..a1b1b43 100644
--- a/smb4k/searchdlg/smb4ksearchdialogitem.cpp
+++ b/smb4k/searchdlg/smb4ksearchdialogitem.cpp
@@ -94,7 +94,7 @@ void Smb4KSearchDialogItem::setIcon()
{
if ( m_is_known )
{
- KIconEffect e;
+ TDEIconEffect e;
TQImage over = SmallIcon( "button_ok" ).convertToImage();
TQImage src = SmallIcon( "server" ).convertToImage();
e.semiTransparent( over );
diff --git a/smb4k/smb4ksystemtray.cpp b/smb4k/smb4ksystemtray.cpp
index e49c08d..c7efea1 100644
--- a/smb4k/smb4ksystemtray.cpp
+++ b/smb4k/smb4ksystemtray.cpp
@@ -755,18 +755,18 @@ void Smb4KSystemTray::slotSetupSharesMenu()
// Create a new TDEAction menu:
TQIconSet set;
TQPixmap pix;
- KIconLoader loader;
+ TDEIconLoader loader;
- int icon_state = (*it)->isForeign() ? KIcon::DisabledState : KIcon::DefaultState;
+ int icon_state = (*it)->isForeign() ? TDEIcon::DisabledState : TDEIcon::DefaultState;
if ( (*it)->isBroken() )
{
- TQImage over = loader.loadIcon( "button_cancel", KIcon::Small,
+ TQImage over = loader.loadIcon( "button_cancel", TDEIcon::Small,
0, icon_state, 0L, false ).convertToImage();
- TQImage src = loader.loadIcon( "hdd_mount", KIcon::Small,
+ TQImage src = loader.loadIcon( "hdd_mount", TDEIcon::Small,
0, icon_state, 0L, false ).convertToImage();
- KIconEffect e;
+ TDEIconEffect e;
e.semiTransparent( over );
e.overlay( src, over );
@@ -774,7 +774,7 @@ void Smb4KSystemTray::slotSetupSharesMenu()
}
else
{
- pix = loader.loadIcon( "hdd_mount", KIcon::Small,
+ pix = loader.loadIcon( "hdd_mount", TDEIcon::Small,
0, icon_state, 0L, false );
}
@@ -845,16 +845,16 @@ void Smb4KSystemTray::slotSetupSharesMenu()
{
TQIconSet set;
TQPixmap pix;
- KIconLoader loader;
+ TDEIconLoader loader;
- int icon_state = (*it)->isForeign() ? KIcon::DisabledState : KIcon::DefaultState;
+ int icon_state = (*it)->isForeign() ? TDEIcon::DisabledState : TDEIcon::DefaultState;
- TQImage over = loader.loadIcon( "button_cancel", KIcon::Small,
+ TQImage over = loader.loadIcon( "button_cancel", TDEIcon::Small,
0, icon_state, 0L, false ).convertToImage();
- TQImage src = loader.loadIcon( "hdd_mount", KIcon::Small,
+ TQImage src = loader.loadIcon( "hdd_mount", TDEIcon::Small,
0, icon_state, 0L, false ).convertToImage();
- KIconEffect e;
+ TDEIconEffect e;
e.semiTransparent( over );
e.overlay( src, over );