[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [calligra] krita/ui: cleanup of some stuff I forgot to remove
From: Sven Langkamp <sven.langkamp () gmail ! com>
Date: 2013-06-30 21:36:07
Message-ID: E1UtPHz-0001KF-8s () scm ! kde ! org
[Download RAW message or body]
Git commit d037213bad12f0dae74d8519e1b27823d1ef16ca by Sven Langkamp.
Committed on 30/06/2013 at 21:35.
Pushed by langkamp into branch 'master'.
cleanup of some stuff I forgot to remove
M +0 -28 krita/ui/forms/wdgpresetselectorstrip.ui
M +0 -9 krita/ui/widgets/kis_preset_selector_strip.cpp
http://commits.kde.org/calligra/d037213bad12f0dae74d8519e1b27823d1ef16ca
diff --git a/krita/ui/forms/wdgpresetselectorstrip.ui \
b/krita/ui/forms/wdgpresetselectorstrip.ui index 6e27112..5cd76bb 100644
--- a/krita/ui/forms/wdgpresetselectorstrip.ui
+++ b/krita/ui/forms/wdgpresetselectorstrip.ui
@@ -68,34 +68,6 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <widget class="QPushButton" name="deletePresetBtn">
- <property name="geometry">
- <rect>
- <x>80</x>
- <y>20</y>
- <width>25</width>
- <height>25</height>
- </rect>
- </property>
- <property name="sizePolicy">
- <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
- <horstretch>0</horstretch>
- <verstretch>3</verstretch>
- </sizepolicy>
- </property>
- <property name="minimumSize">
- <size>
- <width>0</width>
- <height>0</height>
- </size>
- </property>
- <property name="text">
- <string/>
- </property>
- <property name="flat">
- <bool>true</bool>
- </property>
- </widget>
</widget>
</item>
<item>
diff --git a/krita/ui/widgets/kis_preset_selector_strip.cpp \
b/krita/ui/widgets/kis_preset_selector_strip.cpp index 1953d91..2d06050 100644
--- a/krita/ui/widgets/kis_preset_selector_strip.cpp
+++ b/krita/ui/widgets/kis_preset_selector_strip.cpp
@@ -41,11 +41,6 @@ KisPresetSelectorStrip::KisPresetSelectorStrip(QWidget* parent)
/* This is an heuristic to fill smallPresetChooser with only the presets
* for the paintop that comes selected by default: Pixel Brush. */
const QString PIXEL_BRUSH_ID = "paintbrush";
-
- connect(smallPresetChooser, SIGNAL(resourceSelected(KoResource*)),
- this, SLOT(prepareDeleteButton()));
- connect(smallPresetChooser, SIGNAL(resourceSelected(KoResource*)),
- this, SLOT(startRefreshingTimer()));
}
KisPresetSelectorStrip::~KisPresetSelectorStrip()
@@ -57,8 +52,6 @@ void KisPresetSelectorStrip::on_leftScrollBtn_pressed()
// Deciding how far beyond the left margin (10 pixels) was an arbitrary decision
QPoint beyondLeftMargin(-10, 0);
m_resourceItemView->scrollTo(m_resourceItemView->indexAt(beyondLeftMargin), \
QAbstractItemView::EnsureVisible);
-
- deletePresetBtn->setVisible(false);
}
void KisPresetSelectorStrip::on_rightScrollBtn_pressed()
@@ -66,8 +59,6 @@ void KisPresetSelectorStrip::on_rightScrollBtn_pressed()
// Deciding how far beyond the right margin to put the point (10 pixels) was an \
arbitrary decision
QPoint beyondRightMargin(10 + m_resourceItemView->viewport()->width(), 0);
m_resourceItemView->scrollTo(m_resourceItemView->indexAt(beyondRightMargin), \
QAbstractItemView::EnsureVisible);
-
- deletePresetBtn->setVisible(false);
}
#include "kis_preset_selector_strip.moc"
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic