2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

New way of working with boxes (layers).

Now the background of boxes is separated to another widget.
This will allow to use a special layer widget (like settings)
together with the usual layers-boxes upon it, moving the special
widget behind the dark background when a usual layer-box is shown.
This commit is contained in:
John Preston
2016-08-16 19:53:10 +03:00
parent 05697374c5
commit 392984f276
54 changed files with 770 additions and 990 deletions

View File

@@ -192,9 +192,6 @@ void CountryInput::setText(const QString &newText) {
_text = _st.font->elided(newText, width() - _st.textMrg.left() - _st.textMrg.right());
}
CountryInput::~CountryInput() {
}
CountrySelectInner::CountrySelectInner() : TWidget()
, _rowHeight(st::countryRowHeight)
, _sel(0)
@@ -483,13 +480,6 @@ void CountrySelectBox::resizeEvent(QResizeEvent *e) {
_topShadow.setGeometry(0, st::boxTitleHeight + _filter.height(), width(), st::lineWidth);
}
void CountrySelectBox::hideAll() {
_filter.hide();
_filterCancel.hide();
_topShadow.hide();
ItemListBox::hideAll();
}
void CountrySelectBox::showAll() {
_filter.show();
if (_filter.getLastText().isEmpty()) {
@@ -515,6 +505,6 @@ void CountrySelectBox::onFilterUpdate() {
_inner.updateFilter(_filter.getLastText());
}
void CountrySelectBox::showDone() {
void CountrySelectBox::doSetInnerFocus() {
_filter.setFocus();
}