@@ -27,12 +27,12 @@ MainWindow::MainWindow() : QMainWindow()
2727 ui_.ZVisibleCheck ->setChecked (ui_.TestingWidget ->zAxis ()->isEnabled ());
2828 connect (ui_.ZVisibleCheck , SIGNAL (toggled (bool )), ui_.TestingWidget ->zAxis (), SLOT (setEnabled (bool )));
2929
30- ui_.XLabelAlignmentCombo ->addItem (QString (" Horizontal" ));
31- ui_.XLabelAlignmentCombo ->addItem (QString (" Vertical" ));
32- ui_.YLabelAlignmentCombo ->addItem (QString (" Horizontal" ));
33- ui_.YLabelAlignmentCombo ->addItem (QString (" Vertical" ));
34- ui_.ZLabelAlignmentCombo ->addItem (QString (" Horizontal" ));
35- ui_.ZLabelAlignmentCombo ->addItem (QString (" Vertical" ));
30+ ui_.XLabelRotationCombo ->addItem (QString (" Horizontal" ));
31+ ui_.XLabelRotationCombo ->addItem (QString (" Vertical" ));
32+ ui_.YLabelRotationCombo ->addItem (QString (" Horizontal" ));
33+ ui_.YLabelRotationCombo ->addItem (QString (" Vertical" ));
34+ ui_.ZLabelRotationCombo ->addItem (QString (" Horizontal" ));
35+ ui_.ZLabelRotationCombo ->addItem (QString (" Vertical" ));
3636
3737 // Data
3838 const auto nPoints = 1000 ;
@@ -52,47 +52,47 @@ MainWindow::MainWindow() : QMainWindow()
5252 ui_.TestingWidget ->showAllData ();
5353};
5454
55- void MainWindow::on_XLabelAlignmentCombo_currentIndexChanged (int index)
55+ void MainWindow::on_XLabelRotationCombo_currentIndexChanged (int index)
5656{
5757 switch (index)
5858 {
5959 case 0 :
60- ui_.TestingWidget ->xAxis ()->setTitleLabelAlignment (Mildred::TextAlignment::Horizontal );
60+ ui_.TestingWidget ->xAxis ()->setTitleLabelRotation ( 0.0 );
6161 break ;
6262 case 1 :
63- ui_.TestingWidget ->xAxis ()->setTitleLabelAlignment (Mildred::TextAlignment::Vertical );
63+ ui_.TestingWidget ->xAxis ()->setTitleLabelRotation ( 90.0 );
6464 break ;
6565 default :
66- throw (std::runtime_error (" Unhandled text alignment mode ." ));
66+ throw (std::runtime_error (" Unhandled text rotation ." ));
6767 }
6868}
6969
70- void MainWindow::on_YLabelAlignmentCombo_currentIndexChanged (int index)
70+ void MainWindow::on_YLabelRotationCombo_currentIndexChanged (int index)
7171{
7272 switch (index)
7373 {
7474 case 0 :
75- ui_.TestingWidget ->yAxis ()->setTitleLabelAlignment (Mildred::TextAlignment::Horizontal );
75+ ui_.TestingWidget ->yAxis ()->setTitleLabelRotation ( 0.0 );
7676 break ;
7777 case 1 :
78- ui_.TestingWidget ->yAxis ()->setTitleLabelAlignment (Mildred::TextAlignment::Vertical );
78+ ui_.TestingWidget ->yAxis ()->setTitleLabelRotation ( 90.0 );
7979 break ;
8080 default :
81- throw (std::runtime_error (" Unhandled text alignment mode ." ));
81+ throw (std::runtime_error (" Unhandled text rotation ." ));
8282 }
8383}
8484
85- void MainWindow::on_ZLabelAlignmentCombo_currentIndexChanged (int index)
85+ void MainWindow::on_ZLabelRotationCombo_currentIndexChanged (int index)
8686{
8787 switch (index)
8888 {
8989 case 0 :
90- ui_.TestingWidget ->zAxis ()->setTitleLabelAlignment (Mildred::TextAlignment::Horizontal );
90+ ui_.TestingWidget ->zAxis ()->setTitleLabelRotation ( 0.0 );
9191 break ;
9292 case 1 :
93- ui_.TestingWidget ->zAxis ()->setTitleLabelAlignment (Mildred::TextAlignment::Vertical );
93+ ui_.TestingWidget ->zAxis ()->setTitleLabelRotation ( 90.0 );
9494 break ;
9595 default :
96- throw (std::runtime_error (" Unhandled text alignment mode." ));
96+ throw (std::runtime_error (" Unhandled text Rotation mode." ));
9797 }
9898}
0 commit comments