Commit 24d9da55 authored by Nikolai Krasheninnikov's avatar Nikolai Krasheninnikov
Browse files

[svn] SVN log dialog moved from QWidget to QDialog.

- let us use 'Escape' key to close dialog;
- all other UI are QDialog's, given all QDialog advantages (single taskbar
entry, auto OK and CANCEL actions, dialog centers on top of the parent widget);
- this window IS a dialog by design.
parent deae929c
...@@ -86,7 +86,7 @@ enum columns_t { ...@@ -86,7 +86,7 @@ enum columns_t {
}; };
SvnLogDialog::SvnLogDialog(const QString& contextDir, QWidget *parent) : SvnLogDialog::SvnLogDialog(const QString& contextDir, QWidget *parent) :
QWidget(parent), QDialog(parent),
m_contextDir(contextDir), m_contextDir(contextDir),
m_logLength(100) m_logLength(100)
{ {
......
...@@ -21,14 +21,14 @@ ...@@ -21,14 +21,14 @@
#ifndef SVNLOGDIALOG_H #ifndef SVNLOGDIALOG_H
#define SVNLOGDIALOG_H #define SVNLOGDIALOG_H
#include <QWidget> #include <QDialog>
#include <QVector> #include <QVector>
#include "svncommands.h" #include "svncommands.h"
#include "ui_svnlogdialog.h" #include "ui_svnlogdialog.h"
class SvnLogDialog : public QWidget { class SvnLogDialog : public QDialog {
Q_OBJECT Q_OBJECT
public: public:
SvnLogDialog(const QString& contextDir, QWidget *parent = nullptr); SvnLogDialog(const QString& contextDir, QWidget *parent = nullptr);
......
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