[SCM] ktp-accounts-kcm packaging branch, master, updated. debian/15.12.1-1-1157-gc4589c5
Maximiliano Curia
maxy at moszumanska.debian.org
Fri May 27 23:57:27 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-accounts-kcm.git;a=commitdiff;h=2761aa2
The following commit has been merged in the master branch:
commit 2761aa250af95cc8a57ac4017d728810d5b0612b
Author: George Goldberg <grundleborg at googlemail.com>
Date: Thu Jul 23 20:55:31 2009 +0000
Connect to the slots on the parameter edit widgets to see when their data is changed.
svn path=/trunk/playground/network/telepathy-accounts-kcm/; revision=1001639
---
src/parameter-edit-delegate.cpp | 15 +++++++++++++++
src/parameter-edit-delegate.h | 4 ++++
2 files changed, 19 insertions(+)
diff --git a/src/parameter-edit-delegate.cpp b/src/parameter-edit-delegate.cpp
index 55e9a01..c27cbb5 100644
--- a/src/parameter-edit-delegate.cpp
+++ b/src/parameter-edit-delegate.cpp
@@ -50,10 +50,15 @@ QList<QWidget*> ParameterEditDelegate::createItemWidgets() const
{
QList<QWidget*> widgets;
+ // Create all the possible widgets for displaying the parameter.
QLabel *nameLabel = new QLabel();
QLineEdit *lineEdit = new QLineEdit();
QCheckBox *checkBox = new QCheckBox();
+ // Connect to the slots from the widgets that we are interested in.
+ connect(lineEdit, SIGNAL(textChanged(QString)), SLOT(onLineEditTextChanged(QString)));
+ connect(checkBox, SIGNAL(toggled(bool)), SLOT(onCheckBoxToggled(bool)));
+
widgets << nameLabel << lineEdit << checkBox;
return widgets;
@@ -132,6 +137,16 @@ QSize ParameterEditDelegate::sizeHint(const QStyleOptionViewItem &option,
return size;
}
+void ParameterEditDelegate::onLineEditTextChanged(QString text)
+{
+ // TODO: Implement me!
+}
+
+void ParameterEditDelegate::onCheckBoxToggled(bool checked)
+{
+ // TODO: Implement me!
+}
+
#include "parameter-edit-delegate.moc"
diff --git a/src/parameter-edit-delegate.h b/src/parameter-edit-delegate.h
index a06e8a9..40f9219 100644
--- a/src/parameter-edit-delegate.h
+++ b/src/parameter-edit-delegate.h
@@ -36,6 +36,10 @@ public:
const QModelIndex &index) const;
virtual QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const;
+private Q_SLOTS:
+ void onLineEditTextChanged(QString text);
+ void onCheckBoxToggled(bool checked);
+
protected:
virtual QList<QWidget*> createItemWidgets() const;
virtual void updateItemWidgets(const QList<QWidget*> widgets,
--
ktp-accounts-kcm packaging
More information about the pkg-kde-commits
mailing list