From kde-commits Sun Jun 30 21:36:07 2013 From: Sven Langkamp Date: Sun, 30 Jun 2013 21:36:07 +0000 To: kde-commits Subject: [calligra] krita/ui: cleanup of some stuff I forgot to remove Message-Id: X-MARC-Message: https://marc.info/?l=kde-commits&m=137262817631865 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/wdgp= resetselectorstrip.ui index 6e27112..5cd76bb 100644 --- a/krita/ui/forms/wdgpresetselectorstrip.ui +++ b/krita/ui/forms/wdgpresetselectorstrip.ui @@ -68,34 +68,6 @@ 0 - - - - 80 - 20 - 25 - 25 - - - - - 0 - 3 - - - - - 0 - 0 - - - - - - - true - - diff --git a/krita/ui/widgets/kis_preset_selector_strip.cpp b/krita/ui/widg= ets/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 prese= ts * for the paintop that comes selected by default: Pixel Brush. */ const QString PIXEL_BRUSH_ID =3D "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 arbitrar= y decision QPoint beyondLeftMargin(-10, 0); m_resourceItemView->scrollTo(m_resourceItemView->indexAt(beyondLeftMar= gin), 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 pixel= s) was an arbitrary decision QPoint beyondRightMargin(10 + m_resourceItemView->viewport()->width(),= 0); m_resourceItemView->scrollTo(m_resourceItemView->indexAt(beyondRightMa= rgin), QAbstractItemView::EnsureVisible); - = - deletePresetBtn->setVisible(false); } = #include "kis_preset_selector_strip.moc"