5959#define CFG_KEY_SIZE " Size"
6060
6161
62- BHCDialog::BHCDialog (QWidget * parent, QSettings * settings) :
62+ BHCDialog::BHCDialog (QWidget* parent, QSettings* settings) :
6363 QDialog(parent)
6464{
6565 setupUi (this );
@@ -77,10 +77,10 @@ BHCDialog::BHCDialog(QWidget *parent, QSettings *settings) :
7777 tabBar = new QTabWidget (this );
7878 pageLayout->addWidget (tabBar);
7979
80- BHCTab * page1 = new BHCTab (this );
81- BHCTab * page2 = new BHCTab (this );
82- BHCTab * page3 = new BHCTab (this );
83- BHCTab * page4 = new BHCTab (this );
80+ BHCTab* page1 = new BHCTab (this );
81+ BHCTab* page2 = new BHCTab (this );
82+ BHCTab* page3 = new BHCTab (this );
83+ BHCTab* page4 = new BHCTab (this );
8484
8585 tabBar->addTab (page1, tr (" Circle 1 - green" ));
8686 tabBar->addTab (page2, tr (" Circle 2 - blue" ));
@@ -105,11 +105,11 @@ BHCDialog::~BHCDialog()
105105
106106void BHCDialog::comChk ()
107107{
108- BHCTab * tab;
108+ BHCTab* tab;
109109 int tabId, roat, activTab;
110110 bool mirX, mirY;
111111
112- tab = (BHCTab *)tabBar->currentWidget ();
112+ tab = (BHCTab*)tabBar->currentWidget ();
113113 activTab = tabBar->currentIndex ();
114114
115115 if (tab->all ->isChecked ()) {
@@ -118,7 +118,7 @@ void BHCDialog::comChk()
118118 mirY = tab->mirrorY ->isChecked ();
119119
120120 for (tabId = 0 ; tabId < tabBar->count (); tabId++) {
121- tab = (BHCTab *)tabBar->widget (tabId);
121+ tab = (BHCTab*)tabBar->widget (tabId);
122122
123123 if (tab == nullptr ) {
124124 continue ;
@@ -142,7 +142,7 @@ void BHCDialog::comChk()
142142void BHCDialog::clearAll ()
143143{
144144 for (int tabId = 0 ; tabId < tabBar->count (); tabId++) {
145- BHCTab * tab = (BHCTab *)tabBar->widget (tabId);
145+ BHCTab* tab = (BHCTab*)tabBar->widget (tabId);
146146
147147 if (tab == nullptr ) {
148148 continue ;
@@ -168,7 +168,7 @@ void BHCDialog::clearAll()
168168
169169void BHCDialog::computeButtonClicked ()
170170{
171- BHCTab * tab;
171+ BHCTab* tab;
172172 QColor col;
173173 int tabId, i, textPosY, textPosX, dir;
174174 bool ok;
@@ -179,7 +179,7 @@ void BHCDialog::computeButtonClicked()
179179 maxDia = 0 ;
180180
181181 for (tabId = 0 ; tabId <= tabBar->count (); tabId++) {
182- tab = (BHCTab *)tabBar->widget (tabId);
182+ tab = (BHCTab*)tabBar->widget (tabId);
183183
184184 if (tab == nullptr ) {
185185 continue ;
@@ -192,7 +192,7 @@ void BHCDialog::computeButtonClicked()
192192 }
193193
194194 for (tabId = 0 ; tabId < tabBar->count (); tabId++) {
195- tab = (BHCTab *)tabBar->widget (tabId);
195+ tab = (BHCTab*)tabBar->widget (tabId);
196196
197197 if (tab == nullptr ) {
198198 continue ;
@@ -300,10 +300,10 @@ void BHCDialog::computeButtonClicked()
300300 x = xCenter + (dia * cos ((M_PI / 180 ) * ang));
301301 y = yCenter + (dia * sin ((M_PI / 180 ) * ang));
302302
303- QTableWidgetItem * xItem = new QTableWidgetItem (Utils::removeZeros (QString (" %1" ).arg (x, 0 , ' f' , 3 )));
303+ QTableWidgetItem* xItem = new QTableWidgetItem (Utils::removeZeros (QString (" %1" ).arg (x, 0 , ' f' , 3 )));
304304 xItem->setTextAlignment (Qt::AlignRight | Qt::AlignVCenter);
305305
306- QTableWidgetItem * yItem = new QTableWidgetItem (Utils::removeZeros (QString (" %1" ).arg (y, 0 , ' f' , 3 )));
306+ QTableWidgetItem* yItem = new QTableWidgetItem (Utils::removeZeros (QString (" %1" ).arg (y, 0 , ' f' , 3 )));
307307 yItem->setTextAlignment (Qt::AlignRight | Qt::AlignVCenter);
308308
309309 QTableWidgetItem* hdr = new QTableWidgetItem (Utils::removeZeros (QString (" %1 - %2 " ).arg (i + 1 ).arg (ang,
@@ -314,7 +314,7 @@ void BHCDialog::computeButtonClicked()
314314 }
315315 }
316316
317- drawing = (BHCDraw *) findChild<BHCDraw *>();
317+ drawing = (BHCDraw*) findChild<BHCDraw*>();
318318
319319 if (!drawing) {
320320 drawing = new BHCDraw (this );
@@ -329,7 +329,7 @@ void BHCDialog::computeButtonClicked()
329329 drawing->clear ();
330330
331331 for (tabId = 0 ; tabId <= tabBar->count (); tabId++) {
332- tab = (BHCTab *)tabBar->widget (tabId);
332+ tab = (BHCTab*)tabBar->widget (tabId);
333333
334334 if (tab == 0 ) {
335335 continue ;
@@ -476,37 +476,37 @@ void BHCDialog::computeButtonClicked()
476476 drawing->update ();
477477}
478478
479- void BHCDialog::setOptions (const BHCOptions & options)
479+ void BHCDialog::setOptions (const BHCOptions& options)
480480{
481- BHCTab * tab;
482- tab = (BHCTab *)tabBar->widget (0 ); // green
481+ BHCTab* tab;
482+ tab = (BHCTab*)tabBar->widget (0 ); // green
483483 tab->setOptions (options.green );
484- tab = (BHCTab *)tabBar->widget (1 ); // blue
484+ tab = (BHCTab*)tabBar->widget (1 ); // blue
485485 tab->setOptions (options.blue );
486- tab = (BHCTab *)tabBar->widget (2 ); // red
486+ tab = (BHCTab*)tabBar->widget (2 ); // red
487487 tab->setOptions (options.red );
488- tab = (BHCTab *)tabBar->widget (3 ); // yellow
488+ tab = (BHCTab*)tabBar->widget (3 ); // yellow
489489 tab->setOptions (options.yellow );
490490}
491491
492492BHCOptions BHCDialog::options ()
493493{
494494 BHCOptions options;
495- BHCTab * tab;
495+ BHCTab* tab;
496496
497- tab = (BHCTab *)tabBar->widget (0 ); // green
497+ tab = (BHCTab*)tabBar->widget (0 ); // green
498498 options.green = tab->options ();;
499- tab = (BHCTab *)tabBar->widget (1 ); // blue
499+ tab = (BHCTab*)tabBar->widget (1 ); // blue
500500 options.blue = tab->options ();;
501- tab = (BHCTab *)tabBar->widget (2 ); // red
501+ tab = (BHCTab*)tabBar->widget (2 ); // red
502502 options.red = tab->options ();;
503- tab = (BHCTab *)tabBar->widget (3 ); // yellow
503+ tab = (BHCTab*)tabBar->widget (3 ); // yellow
504504 options.yellow = tab->options ();
505505
506506 return options;
507507}
508508
509- void BHCDialog::loadSettings (const BHCOptions & defaultOptions)
509+ void BHCDialog::loadSettings (const BHCOptions& defaultOptions)
510510{
511511 if (mSettings .isNull ()) {
512512 return ;
0 commit comments