+}
+
+QSize InputLine::sizeHint() const {
+ // use the style to determine a decent size
+ QFontMetrics fm(font());
+ int h = fm.lineSpacing() + 2 * frameWidth();
+ QStyleOptionFrameV2 opt;
+ opt.initFrom(this);
+ opt.rect = QRect(0, 0, 100, h);
+ opt.lineWidth = lineWidth();
+ opt.midLineWidth = midLineWidth();
+ opt.state |= QStyle::State_Sunken;
+ QSize s = style()->sizeFromContents(QStyle::CT_LineEdit, &opt, QSize(100, h).expandedTo(QApplication::globalStrut()), this);
+ return s;
+}
+
+QSize InputLine::minimumSizeHint() const {
+ return sizeHint();