aboutsummaryrefslogtreecommitdiffstats
path: root/editorpage.cpp
diff options
context:
space:
mode:
authornils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2011-08-08 18:14:23 +0000
committernils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2011-08-08 18:14:23 +0000
commitcdcfb07b963cc844f78db0015c0d51298dd8bc90 (patch)
treebb592666d2af5b2f79c4e6054bb94d5e37773655 /editorpage.cpp
parentcss for verifynotification (diff)
downloadgpg4usb-cdcfb07b963cc844f78db0015c0d51298dd8bc90.tar.gz
gpg4usb-cdcfb07b963cc844f78db0015c0d51298dd8bc90.zip
changed removeNoteByClassname to hideNoteByClassname since remove doesn't work
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@509 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'editorpage.cpp')
-rw-r--r--editorpage.cpp23
1 files changed, 7 insertions, 16 deletions
diff --git a/editorpage.cpp b/editorpage.cpp
index 7725e02..f6c6504 100644
--- a/editorpage.cpp
+++ b/editorpage.cpp
@@ -65,27 +65,18 @@ void EditorPage::showNotificationWidget(QWidget *widget, const char *className)
mainLayout->addWidget(widget);
}
-void EditorPage::removeNoteByClass(const char *className) {
+void EditorPage::hideNoteByClass(const char *className)
+{
qDebug() << "length:" << this->children().length();
-
- foreach(QObject *tmp, this->children()) {
- qDebug() << "bla" << tmp->property(className);
- if (tmp->property(className) == true) {
- mainLayout->removeWidget(qobject_cast <QWidget*> (tmp));
+ QList<QWidget *> widgets = findChildren<QWidget *>();
+ foreach(QWidget * widget, widgets)
+ {
+ if (widget->property(className) == true) {
+ widget->hide();
}
}
}
-void EditorPage::showVerifyLabel(bool showLabel)
-{
- if (showLabel == true) {
- notificationWidget->show();
- } else {
- notificationWidget->hide();
- }
-
-}
-
void setSaveState()
{
// curPage()->setFilePath("");