Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
5b7813ae
Commit
5b7813ae
authored
Feb 06, 2012
by
Sebastian Eichelbaum
Browse files
[STYLE]
parent
2e1d4df7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
src/core/graphicsEngine/widgets/labeling/WGELabel.cpp
src/core/graphicsEngine/widgets/labeling/WGELabel.cpp
+2
-0
src/qt4gui/qt4/WMainWindow.cpp
src/qt4gui/qt4/WMainWindow.cpp
+14
-0
No files found.
src/core/graphicsEngine/widgets/labeling/WGELabel.cpp
View file @
5b7813ae
...
...
@@ -22,6 +22,8 @@
//
//---------------------------------------------------------------------------
#include <string>
#include "../../../common/WPathHelper.h"
#include "WGELabel.h"
...
...
src/qt4gui/qt4/WMainWindow.cpp
View file @
5b7813ae
...
...
@@ -1070,6 +1070,20 @@ void WMainWindow::handleGLVendor()
WQtMessageDialog
*
msgDia
=
new
WQtMessageDialog
(
"MesaWarning"
,
"Mesa Warning"
,
l
,
getSettings
(),
this
);
msgDia
->
show
();
}
// is this a mesa card?
if
(
(
vendor
.
find
(
"Chromium"
)
!=
std
::
string
::
npos
)
||
(
vendor
.
find
(
"Humper"
)
!=
std
::
string
::
npos
)
)
{
QString
msg
=
"<b>Warning:</b> You seem to use OpenWalnut from inside a virtual machine. Graphics acceleration on these virtual machines"
" is often limited. OpenWalnut might not properly work in your setup."
;
QLabel
*
l
=
new
QLabel
(
msg
);
l
->
setWordWrap
(
true
);
l
->
setMinimumWidth
(
640
);
WQtMessageDialog
*
msgDia
=
new
WQtMessageDialog
(
"VMChromiumWarning"
,
"Virtual Machine Warning"
,
l
,
getSettings
(),
this
);
msgDia
->
show
();
}
}
void
WMainWindow
::
handleStartMessages
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment