Added a tooltip for Clear Button

Set a fixed size for ForumThreadWidget's Search Filter

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7386 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2014-05-27 23:59:18 +00:00
parent 621d8ba9df
commit f54162db76
2 changed files with 14 additions and 1 deletions

View File

@ -47,6 +47,7 @@ LineEditClear::LineEditClear(QWidget *parent)
"QToolButton:pressed { border-image: url(:/images/closepressed.png) }");
mClearButton->hide();
mClearButton->setFocusPolicy(Qt::NoFocus);
mClearButton->setToolTip("Clear Filter");
connect(mClearButton, SIGNAL(clicked()), this, SLOT(clear()));
connect(this, SIGNAL(textChanged(const QString&)), this, SLOT(updateClearButton(const QString&)));

View File

@ -71,7 +71,7 @@
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
<enum>QSizePolicy::Expanding</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
@ -83,6 +83,18 @@
</item>
<item>
<widget class="LineEditClear" name="filterLineEdit">
<property name="minimumSize">
<size>
<width>200</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>200</width>
<height>16777215</height>
</size>
</property>
<property name="toolTip">
<string>Search forums</string>
</property>