search merged to os x version, fixed some retina render, custom notifies code moved to window module

This commit is contained in:
John Preston
2014-07-06 07:32:21 +04:00
parent 29d6bf46c8
commit 1167117ee0
38 changed files with 743 additions and 3679 deletions
+2 -6
View File
@@ -75,11 +75,7 @@ void Slider::setSelected(int32 sel) {
void Slider::paintEvent(QPaintEvent *e) {
QPainter p(this);
p.setPen(_st.color->p);
int32 from = (height() - _st.thikness) / 2, to = from + _st.thikness;
for (int32 i = from; i < to; ++i) {
p.drawLine(0, i, width() - 1, i);
}
p.fillRect(0, (height() - _st.thikness) / 2, width(), _st.thikness, _st.color->b);
int32 x = qFloor(_sel * float64(width() - _st.bar.pxWidth()) / (_count - 1)), y = (height() - _st.bar.pxHeight()) / 2;
p.drawPixmap(QPoint(x, y), App::sprite(), _st.bar);
@@ -908,7 +904,7 @@ void SettingsInner::onSoundNotify() {
void SettingsInner::onDesktopNotify() {
cSetDesktopNotify(_desktopNotify.checked());
if (!_desktopNotify.checked()) {
App::wnd()->psClearNotify();
App::wnd()->notifyClear();
}
App::writeUserConfig();
}