mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
fixed stlesheets for Search LineEdit's frame, use now 3 chars for search
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2323 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
17ef6b932b
commit
d2bda9fff3
@ -99,7 +99,7 @@ SearchDialog::SearchDialog(QWidget *parent)
|
||||
ui.setupUi(this);
|
||||
|
||||
ui.lineEdit->setFocus();
|
||||
ui.lineEdit->setToolTip(tr("Enter a keyword here (at least 4 char long)"));
|
||||
ui.lineEdit->setToolTip(tr("Enter a keyword here (at least 3 char long)"));
|
||||
|
||||
/* initialise the filetypes mapping */
|
||||
if (!SearchDialog::initialised)
|
||||
@ -186,14 +186,14 @@ SearchDialog::SearchDialog(QWidget *parent)
|
||||
|
||||
void SearchDialog::checkText(const QString& txt)
|
||||
{
|
||||
if(txt.length() < 4)
|
||||
if(txt.length() < 3)
|
||||
{
|
||||
std::cout << "setting palette 1" << std::endl ;
|
||||
ui.lineEdit->setStyleSheet("QLineEdit { background-color: gray; }");
|
||||
ui.frame_2->setStyleSheet("QFrame{ border: 2px solid #079E00; background-color: #DBDBDB; }");
|
||||
}
|
||||
else
|
||||
{
|
||||
ui.lineEdit->setStyleSheet("QLineEdit { background-color: white; }");
|
||||
ui.frame_2->setStyleSheet("QFrame { border: 2px solid #079E00; background-color: white; }");
|
||||
std::cout << "setting palette 2" << std::endl ;
|
||||
}
|
||||
}
|
||||
@ -541,7 +541,7 @@ void SearchDialog::searchKeywords()
|
||||
QString qTxt = ui.lineEdit->text();
|
||||
std::string txt = qTxt.toStdString();
|
||||
|
||||
if(txt.length() < 4)
|
||||
if(txt.length() < 3)
|
||||
return ;
|
||||
|
||||
std::cerr << "SearchDialog::searchKeywords() : " << txt << std::endl;
|
||||
|
@ -734,7 +734,7 @@ border-image: url(:/images/btn_26_pressed.png) 4;
|
||||
</size>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">border: 1px solid #8B8B8B;
|
||||
<string notr="true">border: 2px solid #079E00;
|
||||
background: white;</string>
|
||||
</property>
|
||||
<property name="frameShape">
|
||||
|
Loading…
Reference in New Issue
Block a user