[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/runtime/plasma/scriptengines/javascript/simplebindings
From: Aaron J. Seigo <aseigo () kde ! org>
Date: 2009-11-18 23:26:29
Message-ID: 1258586789.017963.10253.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1051186 by aseigo:
add an accepted signal, differentiate between accepted and finished; more \
qdialog-like and lets the widget react to a failed file dialog
M +5 -2 filedialogproxy.cpp
M +1 -0 filedialogproxy.h
--- trunk/KDE/kdebase/runtime/plasma/scriptengines/javascript/simplebindings/filedialogproxy.cpp \
#1051185:1051186 @@ -28,12 +28,12 @@
{
kDebug() << "hello beautiful";
m_dialog->setOperationMode(mode);
- connect(m_dialog, SIGNAL(okClicked()), this, SLOT(dialogFinished()));
+ connect(m_dialog, SIGNAL(finished()), this, SLOT(dialogFinished()));
}
FileDialogProxy::~FileDialogProxy()
{
- kDebug() << "bye bye";
+ kDebug() << this << "bye bye";
delete m_dialog;
}
@@ -126,6 +126,9 @@
void FileDialogProxy::dialogFinished()
{
+ if (m_dialog->result() == QDialog::Accepted) {
+ emit accepted(this);
+ }
emit finished(this);
}
--- trunk/KDE/kdebase/runtime/plasma/scriptengines/javascript/simplebindings/filedialogproxy.h \
#1051185:1051186 @@ -72,6 +72,7 @@
void show();
Q_SIGNALS:
+ void accepted(FileDialogProxy *);
void finished(FileDialogProxy *);
private Q_SLOTS:
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic