Browse Source

Rename a number of classes to enhance compatibility with KDE4

pull/1/head
Timothy Pearson 9 years ago
parent
commit
17e46b49e4
  1. 4
      src/knemod/interfaceicon.cpp
  2. 2
      src/knemod/interfacetray.cpp

4
src/knemod/interfaceicon.cpp

@ -126,7 +126,7 @@ void InterfaceIcon::updateMenu()
return;
// Remove all old entries.
KPopupMenu* menu = mTray->contextMenu();
TDEPopupMenu* menu = mTray->contextMenu();
int count = menu->count();
for ( int i = 0; i < count - 6; i++ )
menu->removeItemAt( 6 );
@ -232,7 +232,7 @@ void InterfaceIcon::updateTrayStatus( int previousState, bool notify )
{
mTray = new InterfaceTray( mInterface->getName() );
TQToolTip::add( mTray, mInterface->getName() );
KPopupMenu* menu = mTray->contextMenu();
TDEPopupMenu* menu = mTray->contextMenu();
connect( menu, TQT_SIGNAL( activated( int ) ),
this, TQT_SLOT( menuActivated( int ) ) );
connect( mTray, TQT_SIGNAL( leftClicked() ),

2
src/knemod/interfacetray.cpp

@ -43,7 +43,7 @@ InterfaceTray::InterfaceTray( const TQString& ifname,
{
actionCollection()->clear(); // remove the quit entry
KPopupMenu* popup = contextMenu();
TDEPopupMenu* popup = contextMenu();
int id = popup->idAt( 0 );
popup->changeTitle( id, SmallIcon( "knemo" ),
"KNemo - " + ifname );

Loading…
Cancel
Save