From: Flavio Tordini Date: Sun, 23 Aug 2009 08:58:16 +0000 (+0200) Subject: Painting optimization X-Git-Tag: 0.6~46 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=43eba924d1ede2c4b0791c606266da46f12ab1bf;p=minitube Painting optimization --- diff --git a/src/SearchView.cpp b/src/SearchView.cpp index 6ed908d..71f16d6 100644 --- a/src/SearchView.cpp +++ b/src/SearchView.cpp @@ -6,6 +6,12 @@ static const int PADDING = 40; SearchView::SearchView(QWidget *parent) : QWidget(parent) { +#ifdef Q_WS_MAC + // speedup painting since we'll paint the whole background + // by ourselves anyway in paintEvent() + setAttribute(Qt::WA_OpaquePaintEvent); +#endif + QFont biggerFont; biggerFont.setPointSize(biggerFont.pointSize()*1.5);