3 * \file InsetParamsWidget.cpp
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Abdelrazak Younes
9 * Full author contact details are available in file CREDITS.
14 #include "InsetParamsWidget.h"
16 #include "qt_helpers.h"
24 CheckedWidget::CheckedWidget(QLineEdit * input, QWidget * label)
25 : input_(input), label_(label)
30 bool CheckedWidget::check() const
32 bool const valid = input_->hasAcceptableInput();
34 setValid(input_, valid);
36 setValid(label_, valid);
42 InsetParamsWidget::InsetParamsWidget(QWidget * parent) : QWidget(parent)
47 void InsetParamsWidget::addCheckedWidget(QLineEdit * input, QWidget * label)
49 checked_widgets_.append(CheckedWidget(input, label));
53 bool InsetParamsWidget::checkWidgets() const
56 Q_FOREACH(CheckedWidget const & le, checked_widgets_)
61 } // namespace frontend
64 #include "moc_InsetParamsWidget.cpp"