From 43eba924d1ede2c4b0791c606266da46f12ab1bf Mon Sep 17 00:00:00 2001 From: Flavio Tordini Date: Sun, 23 Aug 2009 10:58:16 +0200 Subject: [PATCH] Painting optimization --- src/SearchView.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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); -- 2.39.5