Commit f5daa27f authored by Andreas Pakulat's avatar Andreas Pakulat

Allow Ctrl+Enter as shortcut for "ok" on the commit-message-dialog.

parent 752fac69
......@@ -18,7 +18,8 @@ kio_kdevsvn_la_SOURCES = svn_kio.cpp
kio_kdevsvn_la_LIBADD = $(LIB_KIO)
kio_kdevsvn_la_LDFLAGS = -module $(all_libraries) $(KDE_PLUGIN) $(SVN_LIB)
kded_kdevsvnd_la_SOURCES = commitdlg.ui kdevsvnd.cpp kdevsvnd.skel kdevsvnd_widgets.cpp svnssltrustpromptbase.ui
kded_kdevsvnd_la_SOURCES = commitdlg.cpp commitdlgbase.ui kdevsvnd.cpp \
kdevsvnd.skel kdevsvnd_widgets.cpp svnssltrustpromptbase.ui
kded_kdevsvnd_la_LIBADD = $(LIB_KIO) -lkdeinit_kded
kded_kdevsvnd_la_LDFLAGS = -module $(all_libraries) $(KDE_PLUGIN)
......@@ -33,5 +34,5 @@ protocol_DATA = kdevsvn+file.protocol kdevsvn+http.protocol kdevsvn+https.protoc
SUBDIRS = integrator
noinst_HEADERS = kdevsvnd.h svn_blamewidget.h svn_copywidget.h \
noinst_HEADERS = commitdlg.h kdevsvnd.h svn_blamewidget.h svn_copywidget.h \
svn_fileselectdlg_commit.h svn_logviewwidget.h svn_mergewidget.h svn_switchwidget.h
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>CommitDlg</class>
<class>CommitDlgBase</class>
<widget class="QDialog">
<property name="name">
<cstring>CommitDlg</cstring>
<cstring>CommitDlgBase</cstring>
</property>
<property name="geometry">
<rect>
......@@ -87,17 +87,19 @@
</widget>
</vbox>
</widget>
<customwidgets>
</customwidgets>
<connections>
<connection>
<sender>pushButton1</sender>
<signal>clicked()</signal>
<receiver>CommitDlg</receiver>
<receiver>CommitDlgBase</receiver>
<slot>accept()</slot>
</connection>
<connection>
<sender>pushButton2</sender>
<signal>clicked()</signal>
<receiver>CommitDlg</receiver>
<receiver>CommitDlgBase</receiver>
<slot>reject()</slot>
</connection>
</connections>
......
......@@ -31,9 +31,9 @@
#include "config.h"
#include "kdevsvnd.h"
#include "commitdlg.h"
#include "kdevsvnd_widgets.h"
#include "commitdlg.h"
extern "C" {
KDE_EXPORT KDEDModule *create_kdevsvnd(const QCString &name) {
......@@ -49,7 +49,7 @@ KDevSvnd::~KDevSvnd()
QString KDevSvnd::commitDialog(QString modifiedFiles) {
CommitDlg commitDlg;
commitDlg.setCaption(i18n("Enter Commit Log Message "));
commitDlg.setCaption(i18n("Enter Commit Log Message:"));
commitDlg.listMessage->setText( modifiedFiles );
int result = commitDlg.exec();
if ( result == QDialog::Accepted ) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment