[Kst] kdeextragear-2/kst/kst
George Staikos
staikos at kde.org
Thu Oct 2 11:20:13 CEST 2003
CVS commit by staikos:
more enabled/disabled fixes
M +7 -4 kstdatamanager_i.cpp 1.35
M +1 -3 kstdatamanager_i.h 1.12
--- kdeextragear-2/kst/kst/kstdatamanager_i.cpp #1.34:1.35
@@ -160,8 +160,4 @@ void KstObjectItem::update(bool recursiv
}
-void KstObjectItem::activate() {
- updateButtons();
-}
-
void KstObjectItem::updateButtons() {
_dm->Edit->setEnabled(RTTI_OBJ_VECTOR != _rtti);
@@ -202,4 +198,6 @@ KstDataManagerI::KstDataManagerI(KstDoc
connect(DataView, SIGNAL(doubleClicked(QListViewItem *)),
this, SLOT(edit_I()));
+ connect(DataView, SIGNAL(currentChanged(QListViewItem *)),
+ this, SLOT(currentChanged(QListViewItem *)));
connect(NewCurve, SIGNAL(clicked()),
@@ -378,4 +376,9 @@ void KstDataManagerI::doUpdates() {
}
+
+void KstDataManagerI::currentChanged(QListViewItem *i) {
+ KstObjectItem *koi = static_cast<KstObjectItem*>(i);
+ koi->updateButtons();
+}
#include "kstdatamanager_i.moc"
--- kdeextragear-2/kst/kst/kstdatamanager_i.h #1.11:1.12
@@ -45,4 +45,5 @@ private slots:
void doUpdates();
void contextMenu(QListViewItem *i, const QPoint& p, int c);
+ void currentChanged(QListViewItem *);
private:
@@ -67,7 +68,4 @@ class KstObjectItem : public QObject, pu
bool removable() const { return _removable; }
void updateButtons();
-
- protected:
- virtual void activate();
public slots:
More information about the Kst
mailing list