[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdeedu/kstars/kstars
From: Akarsh Simha <akarshsimha () gmail ! com>
Date: 2011-01-01 4:27:46
Message-ID: 20110101042746.8252EAC8BE () svn ! kde ! org
[Download RAW message or body]
SVN commit 1210562 by asimha:
Adding warnings and information boxes that tell the user that the
OpenGL support is experimental, but faster; and that infoboxes will be
disabled in GL mode.
M +15 -0 skymap.cpp
--- trunk/KDE/kdeedu/kstars/kstars/skymap.cpp #1210561:1210562
@@ -1110,6 +1110,20 @@
}
else {
// Use GL
+ QString message = i18n("This version of KStars comes with new experimental OpenGL support. Our \
experience is that OpenGL works much faster on machines with hardware acceleration. Would you like to \
switch to OpenGL painting backends?"); +
+ int result = KMessageBox::warningYesNo( this, message,
+ i18n("Switch to OpenGL backend"),
+ KStandardGuiItem::yes(),
+ KStandardGuiItem::no(),
+ "dag_opengl_switch" );
+
+ if ( result == KMessageBox::Yes ) {
+
+ KMessageBox::information( this, i18n("Infoboxes will be disabled as they do not work \
correctly when using OpenGL backends as of this version"), + \
i18n("Switch to OpenGL backend"), + "dag_opengl_infoboxes" );
+
Options::setUseGL( true );
Q_ASSERT( TextureManager::getContext() ); // Should not fail, because TextureManager should be \
already created. @@ -1117,6 +1131,7 @@
m_SkyMapDraw = m_SkyMapGLDraw;
KStars::Instance()->actionCollection()->action( "opengl" )->setText(i18n("Switch to QPainter \
backend")); }
+ }
m_SkyMapDraw->setParent( viewport() );
m_SkyMapDraw->show();
m_SkyMapDraw->resize( size() );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic