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

List:       kde-commits
Subject:    kdevelop/parts/grepview
From:       John Firebaugh <jfirebaugh () kde ! org>
Date:       2003-02-28 23:48:11
[Download RAW message or body]

CVS commit by firebaugh: 

Connect to executed() rather than highlighted().


  M +4 -4      grepviewwidget.cpp   1.13
  M +1 -1      grepviewwidget.h   1.2


--- kdevelop/parts/grepview/grepviewwidget.cpp  #1.12:1.13
@@ -91,6 +91,6 @@ GrepViewWidget::GrepViewWidget(GrepViewP
     connect( grepdlg, SIGNAL(searchClicked()),
              this, SLOT(searchActivated()) );
-    connect( this, SIGNAL(highlighted(int)),
-             this, SLOT(lineHighlighted(int)) );
+    connect( this, SIGNAL(executed(QListBoxItem*)),
+             this, SLOT(slotExecuted(QListBoxItem*)) );
 
     m_part = part;
@@ -195,7 +195,7 @@ void GrepViewWidget::childFinished(bool 
 
 
-void GrepViewWidget::lineHighlighted(int line)
+void GrepViewWidget::slotExecuted(QListBoxItem* item)
 {
-    ProcessListBoxItem *i = static_cast<ProcessListBoxItem*>(item(line));
+    ProcessListBoxItem *i = static_cast<ProcessListBoxItem*>(item);
     if (i->isCustomItem())
         {

--- kdevelop/parts/grepview/grepviewwidget.h  #1.1.1.1:1.2
@@ -36,5 +36,5 @@ public slots:
 private slots:
     void searchActivated();
-    void lineHighlighted(int line);
+    void slotExecuted(QListBoxItem *item);
 
 private:


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

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