Skip to content

Commit

Permalink
Slight GUI improvement.
Browse files Browse the repository at this point in the history
  • Loading branch information
agarny committed Jun 27, 2017
1 parent 131a31e commit bfda24d
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -92,6 +92,7 @@ PendulumWindowWindow::PendulumWindowWindow(QWidget *pParent) :

mTimeLabel = new QLabel(timeWidget);

mTimeLabel->setEnabled(false);
mTimeLabel->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Maximum);

timeWidget->layout()->addWidget(mTimeLabel);
Expand Down Expand Up @@ -439,6 +440,7 @@ void PendulumWindowWindow::addData(const int &pCurrentDataSize)

// Enable/disable our time-related widgets

mTimeLabel->setEnabled(pCurrentDataSize);
mTimeCheckBox->setEnabled(pCurrentDataSize);
mTimeSlider->setEnabled(pCurrentDataSize);

Expand Down

0 comments on commit bfda24d

Please sign in to comment.