mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
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:
parent
621d8ba9df
commit
f54162db76
@ -47,6 +47,7 @@ LineEditClear::LineEditClear(QWidget *parent)
|
|||||||
"QToolButton:pressed { border-image: url(:/images/closepressed.png) }");
|
"QToolButton:pressed { border-image: url(:/images/closepressed.png) }");
|
||||||
mClearButton->hide();
|
mClearButton->hide();
|
||||||
mClearButton->setFocusPolicy(Qt::NoFocus);
|
mClearButton->setFocusPolicy(Qt::NoFocus);
|
||||||
|
mClearButton->setToolTip("Clear Filter");
|
||||||
|
|
||||||
connect(mClearButton, SIGNAL(clicked()), this, SLOT(clear()));
|
connect(mClearButton, SIGNAL(clicked()), this, SLOT(clear()));
|
||||||
connect(this, SIGNAL(textChanged(const QString&)), this, SLOT(updateClearButton(const QString&)));
|
connect(this, SIGNAL(textChanged(const QString&)), this, SLOT(updateClearButton(const QString&)));
|
||||||
|
@ -71,7 +71,7 @@
|
|||||||
<enum>Qt::Horizontal</enum>
|
<enum>Qt::Horizontal</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizeType">
|
<property name="sizeType">
|
||||||
<enum>QSizePolicy::Fixed</enum>
|
<enum>QSizePolicy::Expanding</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizeHint" stdset="0">
|
<property name="sizeHint" stdset="0">
|
||||||
<size>
|
<size>
|
||||||
@ -83,6 +83,18 @@
|
|||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="LineEditClear" name="filterLineEdit">
|
<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">
|
<property name="toolTip">
|
||||||
<string>Search forums</string>
|
<string>Search forums</string>
|
||||||
</property>
|
</property>
|
||||||
|
Loading…
Reference in New Issue
Block a user