|
|
|
@ -67,17 +67,17 @@ KNetStats::~KNetStats() {
|
|
|
|
|
void KNetStats::setupUi() {
|
|
|
|
|
setIcon(kapp->icon());
|
|
|
|
|
// Cria o contextMenu
|
|
|
|
|
mActionCollection = new KActionCollection(this);
|
|
|
|
|
mContextMenu = new KPopupMenu(this);
|
|
|
|
|
mActionCollection = new TDEActionCollection(this);
|
|
|
|
|
mContextMenu = new TDEPopupMenu(this);
|
|
|
|
|
mContextMenu->insertTitle( kapp->miniIcon(), kapp->caption() );
|
|
|
|
|
KAction* configure = KStdAction::preferences(TQT_TQOBJECT(this), TQT_SLOT(configure()), mActionCollection, "configure");
|
|
|
|
|
TDEAction* configure = KStdAction::preferences(TQT_TQOBJECT(this), TQT_SLOT(configure()), mActionCollection, "configure");
|
|
|
|
|
configure->plug(mContextMenu);
|
|
|
|
|
mContextMenu->insertSeparator();
|
|
|
|
|
KHelpMenu* helpmenu = new KHelpMenu(this, TQString(), false);
|
|
|
|
|
mContextMenu->insertItem( i18n("&Help"), helpmenu->menu() );
|
|
|
|
|
|
|
|
|
|
mContextMenu->insertSeparator();
|
|
|
|
|
KAction* quitAction = KStdAction::quit(TQT_TQOBJECT(kapp), TQT_SLOT(quit()), mActionCollection);
|
|
|
|
|
TDEAction* quitAction = KStdAction::quit(TQT_TQOBJECT(kapp), TQT_SLOT(quit()), mActionCollection);
|
|
|
|
|
quitAction->plug(mContextMenu);
|
|
|
|
|
|
|
|
|
|
connect(helpmenu, TQT_SIGNAL(showAboutApplication()), this, TQT_SLOT(about()));
|
|
|
|
|