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

List:       kde-commits
Subject:    playground/office/kmymoney/kmymoney2/widgets
From:       Laurent Montel <montel () kde ! org>
Date:       2009-06-23 11:42:30
Message-ID: 1245757350.448138.1292.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 985665 by mlaurent:

now we use new klineedit => not necessary


 M  +1 -12     registersearchline.cpp  


--- trunk/playground/office/kmymoney/kmymoney2/widgets/registersearchline.cpp #985664:985665
@@ -242,12 +242,10 @@
   public:
   RegisterSearchLineWidgetPrivate() :
     reg(0),
-    searchLine(0),
-    clearButton(0) {}
+    searchLine(0) {}
 
   Register* reg;
   RegisterSearchLine* searchLine;
-  QToolButton* clearButton;
 };
 
 
@@ -275,14 +273,6 @@
 void RegisterSearchLineWidget::createWidgets(void)
 {
   positionInToolBar();
-  if(!d->clearButton) {
-    d->clearButton = new QToolButton(this);
-    QIcon icon = SmallIconSet(QApplication::isRightToLeft() ? "clear_left" : "locationbar_erase");
-    d->clearButton->setIconSet(icon);
-  }
-
-  d->clearButton->show();
-
   QLabel *label = new QLabel(i18n("S&earch:"), this, "kde toolbar widget");
 
   d->searchLine = createSearchLine(d->reg);
@@ -291,7 +281,6 @@
   label->setBuddy(d->searchLine);
   label->show();
 
-  connect(d->clearButton, SIGNAL(clicked()), d->searchLine, SLOT(reset()));
 }
 
 
[prev in list] [next in list] [prev in thread] [next in thread] 

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