Commit 97847d80 authored by Albert Astals Cid's avatar Albert Astals Cid

Make options be "Enable foo" instead of "Disable foo"

BUG: 97053

svn path=/trunk/kdegraphics/kpdf/; revision=378736
parent 662acc6f
......@@ -48,18 +48,18 @@
</property>
<widget class="QCheckBox">
<property name="name">
<cstring>kcfg_DisableCompositing</cstring>
<cstring>kcfg_EnableCompositing</cstring>
</property>
<property name="text">
<string>Disable &amp;transparency effects</string>
<string>Enabled &amp;transparency effects</string>
</property>
</widget>
<widget class="QCheckBox">
<property name="name">
<cstring>kcfg_DisableThreading</cstring>
<cstring>kcfg_EnableThreading</cstring>
</property>
<property name="text">
<string>Disable &amp;background generation</string>
<string>Enable &amp;background generation</string>
</property>
</widget>
</vbox>
......
......@@ -90,11 +90,11 @@
<choice name="pad_description" />
</choices>
</entry>
<entry key="DisableCompositing" type="Bool" >
<default>false</default>
<entry key="EnableCompositing" type="Bool" >
<default>true</default>
</entry>
<entry key="DisableThreading" type="Bool" >
<default>false</default>
<entry key="EnableThreading" type="Bool" >
<default>true</default>
</entry>
</group>
<group name="Presentation" >
......
......@@ -307,7 +307,7 @@ void KPDFDocument::requestPixmaps( const QValueList< PixmapRequest * > & request
mCleanupMemory( request->id );
// 3. Enqueue to Generator (that takes ownership of request)
generator->requestPixmap( request, Settings::disableThreading() ? false : async );
generator->requestPixmap( request, Settings::enableThreading() ? async : false );
}
}
......
......@@ -424,7 +424,7 @@ void PageView::viewportPaintEvent( QPaintEvent * pe )
// note: this check will take care of all things requiring alpha blending (not only selection)
bool wantCompositing = !selectionRect.isNull() && contentsRect.intersects( selectionRect );
if ( wantCompositing && !Settings::disableCompositing() )
if ( wantCompositing && Settings::enableCompositing() )
{
// create pixmap and open a painter over it (contents{left,top} becomes pixmap {0,0})
QPixmap doubleBuffer( contentsRect.size() );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment