Add primitive support of low resolutions
This commit is contained in:
@@ -19,7 +19,8 @@
|
||||
|
||||
#include "SearchPanel.hpp"
|
||||
|
||||
SearchPanel::SearchPanel(KissCount* kiss, wxUI *parent) : KissPanel(kiss, parent), _operations(0)
|
||||
SearchPanel::SearchPanel(KissCount* kiss, wxUI *parent, bool lowResolution) :
|
||||
KissPanel(kiss, parent, lowResolution), _operations(0)
|
||||
{
|
||||
DEFAULT_FONT(font);
|
||||
std::vector<Account>::iterator accountIt;
|
||||
@@ -29,6 +30,9 @@ SearchPanel::SearchPanel(KissCount* kiss, wxUI *parent) : KissPanel(kiss, parent
|
||||
QVBoxLayout *vbox2 = new QVBoxLayout;
|
||||
QHBoxLayout *hbox = new QHBoxLayout;
|
||||
|
||||
_icons[KissPanel::LOW_RES_ICON] = SEARCH_LOW_ICON;
|
||||
_icons[KissPanel::HIGH_RES_ICON] = SEARCH_ICON;
|
||||
|
||||
setLayout(vbox);
|
||||
|
||||
_searchButton = new QPushButton(_("Search"));
|
||||
@@ -67,19 +71,7 @@ SearchPanel::~SearchPanel()
|
||||
|
||||
KissPanel* SearchPanel::CreatePanel()
|
||||
{
|
||||
return new SearchPanel(_kiss, _wxUI);
|
||||
}
|
||||
|
||||
QPushButton* SearchPanel::GetButton()
|
||||
{
|
||||
if (!_KissButton)
|
||||
{
|
||||
_KissButton = new QPushButton(QIcon(SEARCH_ICON), "", this);
|
||||
_KissButton->setFixedSize(128, 128);
|
||||
_KissButton->setIconSize(QSize(128, 128));
|
||||
}
|
||||
|
||||
return _KissButton;
|
||||
return new SearchPanel(_kiss, _wxUI, _lowResolution);
|
||||
}
|
||||
|
||||
QString SearchPanel::GetToolTip()
|
||||
|
||||
Reference in New Issue
Block a user