From 71f79ccce62cb6420f304bb7a0a16f5a2dd371d0 Mon Sep 17 00:00:00 2001 From: cfdev Date: Sat, 10 Nov 2012 15:35:15 +0000 Subject: [PATCH] try to clean the code... git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@1961 bfdf4180-ca20-0410-9c96-a3a8aa849046 --- sources/titleblockpropertieswidget.cpp | 16 ++++++++-------- sources/titleblockpropertieswidget.h | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/sources/titleblockpropertieswidget.cpp b/sources/titleblockpropertieswidget.cpp index 33ea77a06..1c2eccbbb 100644 --- a/sources/titleblockpropertieswidget.cpp +++ b/sources/titleblockpropertieswidget.cpp @@ -297,13 +297,13 @@ void TitleBlockPropertiesWidget::initWidgets(const TitleBlockProperties &titlebl connect(titleblock_fixed_date, SIGNAL(toggled(bool)), titleblock_date, SLOT(setEnabled(bool))); titleblock_date -> setCalendarPopup(true); - titleblock_dateNow = new QPushButton (this); - titleblock_dateNow -> setEnabled(titleblock_fixed_date -> isChecked()); - QIcon icon_dateNow(QET::Icons::ArrowLeft); - titleblock_dateNow->setIcon(icon_dateNow); - titleblock_dateNow->setIconSize(QSize(16, 16)); - connect(titleblock_fixed_date, SIGNAL(toggled(bool)), titleblock_dateNow, SLOT(setEnabled(bool))); - connect(titleblock_dateNow, SIGNAL(clicked()), this, SLOT(setDateNow())); + titleblock_dateNow = new QPushButton (this); + titleblock_dateNow -> setEnabled(titleblock_fixed_date -> isChecked()); + QIcon icon_dateNow(QET::Icons::ArrowLeft); + titleblock_dateNow -> setIcon(icon_dateNow); + titleblock_dateNow -> setIconSize(QSize(16, 16)); + connect(titleblock_fixed_date, SIGNAL(toggled(bool)), titleblock_dateNow, SLOT(setEnabled(bool))); + connect(titleblock_dateNow, SIGNAL(clicked()), this, SLOT(setDateNow())); // we add a bunch of tooltips for users to know how they can put these // values into their title block templates @@ -413,5 +413,5 @@ void TitleBlockPropertiesWidget::initLayouts() { Set the current Date to the combo Date */ void TitleBlockPropertiesWidget::setDateNow(){ - titleblock_date->setDate( QDate::currentDate() ); + titleblock_date -> setDate( QDate::currentDate() ); } diff --git a/sources/titleblockpropertieswidget.h b/sources/titleblockpropertieswidget.h index e25982821..abc9a72a4 100644 --- a/sources/titleblockpropertieswidget.h +++ b/sources/titleblockpropertieswidget.h @@ -52,7 +52,7 @@ class TitleBlockPropertiesWidget : public QWidget { void updateTemplateList(); void editCurrentTitleBlockTemplate(); void duplicateCurrentTitleBlockTemplate(); - void setDateNow(); + void setDateNow(); private: void initWidgets(const TitleBlockProperties &);