[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdevelop/lib/widgets
From:       Caleb Tennis <caleb () aei-tech ! com>
Date:       2002-12-31 19:12:46
[Download RAW message or body]

CVS commit by ctennis: 

Add icons to the popup menu


  M +5 -2      ktabwidget.cpp   1.2


--- kdevelop/lib/widgets/ktabwidget.cpp  #1.1:1.2
@@ -1,2 +1,5 @@
+#include <klocale.h>
+#include <kapplication.h>
+#include <kiconloader.h>
 #include <qpopupmenu.h>
 #include <kdebug.h>
@@ -18,6 +21,6 @@ KTabBar::KTabBar(QWidget *parent, const 
 {
   m_pPopupMenu = new QPopupMenu(this);
-  m_pPopupMenu->insertItem("Close", this, SLOT(closeWindowSlot()));
-  m_pPopupMenu->insertItem("Close Others", this, SLOT(closeOthersSlot()));
+  m_pPopupMenu->insertItem(SmallIcon("tab_remove"), i18n("&Close"), this, \
SLOT(closeWindowSlot())); +  m_pPopupMenu->insertItem(SmallIcon("tab_remove"), \
i18n("Close &Others"), this, SLOT(closeOthersSlot()));  }
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic