From e7e9cf2849d0000acf47ecde86e4853687a03409 Mon Sep 17 00:00:00 2001 From: Jan Darmochwal Date: Thu, 7 Oct 2010 16:56:12 +0200 Subject: Tidy up the code * fixed compiler warnings, added -Werror to CMakeLists.txt * removed LibXml2 and boost stuff from CMakeLists.txt * fixed some things cpplint.py complains about: * make single-argument constructors explicit * add space before if/for/while/... * don't put { on a line of its own * remove space after ! operator * add space between // and comment * remove extra space before ( in function call * remove extra space before ) * shorten lines to <= 80 characters * remove blank lines at the start of a code block * maybe others --- src/dialog.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/dialog.h') diff --git a/src/dialog.h b/src/dialog.h index f8794d9..1b2e7c9 100644 --- a/src/dialog.h +++ b/src/dialog.h @@ -14,24 +14,24 @@ namespace Ui { class Dialog : public QDialog { Q_OBJECT -public: - Dialog(QWidget *parent = 0); + public: + explicit Dialog(QWidget *parent = 0); ~Dialog(); void addItems(const QList&, const QString& section); void selectSession(const QString& name); void selectPreviousSession(); -protected: + protected: void changeEvent(QEvent *e); -private: + private: Ui::Dialog *ui; SessionTreeModel *model_; OrgOpenslxPvsInterface *ifaceDBus_; void readPVSSettings(); void writePVSSettings(); -private slots: + private slots: void on_comboBoxOthers_currentIndexChanged(int index); void on_comboBoxLecturer_currentIndexChanged(int index); void on_pushButtonStart_clicked(); -- cgit v1.2.3-55-g7522