kdenonbeta/kdedebian/kapture/libkapture
CVS commit by mornfall:
Add keep to the ListTreeWidget context menu. Fix progresswidget minimal
height.
M +8 -0 listtreewidget.cpp 1.29
M +1 -0 listtreewidget.h 1.19
M +2 -2 progresswidgetui.ui 1.4
--- kdenonbeta/kdedebian/kapture/libkapture/listtreewidget.cpp #1.28:1.29
@@ -272,4 +272,5 @@ void ListTreeWidget::contextMenu (QListV
m -> insertItem ("Install", this, SLOT (contextInstall ()));
m -> insertItem ("Uninstall", this, SLOT (contextUninstall ()));
+ m -> insertItem ("Keep", this, SLOT (contextKeep ()));
m -> exec (p);
delete m;
@@ -289,4 +290,11 @@ void ListTreeWidget::contextUninstall (v
PkgManager::uninstall (*p);
}
+void ListTreeWidget::contextKeep (void)
+{
+ PkgCElemPtr p = pkgCElem (**m_itemWithMenu);
+ if (p)
+ PkgManager::keep (*p);
+}
+
void ListTreeWidgetTooltip::maybeTip (const QPoint &p)
--- kdenonbeta/kdedebian/kapture/libkapture/listtreewidget.h #1.18:1.19
@@ -52,4 +52,5 @@ namespace kapture {
void contextInstall ();
void contextUninstall ();
+ void contextKeep ();
protected:
std::set <std::string> m_open;
--- kdenonbeta/kdedebian/kapture/libkapture/progresswidgetui.ui #1.3:1.4
@@ -10,5 +10,5 @@
<y>0</y>
<width>522</width>
- <height>375</height>
+ <height>275</height>
</rect>
</property>
@@ -116,5 +116,5 @@
<size>
<width>500</width>
- <height>250</height>
+ <height>150</height>
</size>
</property>
Reply to: