19 #include <ui_PlotAxisConfigWidget.h> 35 connect(
ui_->lineEditTitle, SIGNAL(editingFinished()),
37 connect(
ui_->checkBoxTitleAuto, SIGNAL(stateChanged(
int)),
39 connect(
ui_->checkBoxTitleVisible, SIGNAL(stateChanged(
int)),
54 disconnect(
config_, SIGNAL(titleTypeChanged(
int)),
56 disconnect(
config_, SIGNAL(customTitleChanged(
const QString&)),
58 disconnect(
config_, SIGNAL(titleVisibleChanged(
bool)),
65 connect(config, SIGNAL(titleTypeChanged(
int)),
67 connect(config, SIGNAL(customTitleChanged(
const QString&)),
69 connect(config, SIGNAL(titleVisibleChanged(
bool)),
89 Qt::Checked : Qt::Unchecked);
93 ui_->lineEditTitle->setText(title);
97 ui_->checkBoxTitleVisible->setCheckState(visible ? Qt::Checked :
102 ui_->lineEditTitle->setEnabled(state != Qt::Checked);
const QString & getCustomTitle() const
void setCustomTitle(const QString &title)
TitleType getTitleType() const
void setTitleType(TitleType type)
void setTitleVisible(bool visible)
bool isTitleVisible() const