File tree Expand file tree Collapse file tree 6 files changed +19
-15
lines changed Expand file tree Collapse file tree 6 files changed +19
-15
lines changed Original file line number Diff line number Diff line change 33
33
<key >NSHumanReadableCopyright</key >
34
34
<string >${MACOSX_BUNDLE_COPYRIGHT}</string >
35
35
<key >NSHighResolutionCapable</key >
36
- <true />
36
+ <false />
37
37
<key >CFBundleDocumentTypes</key >
38
38
<array >
39
39
<dict >
Original file line number Diff line number Diff line change @@ -72,13 +72,21 @@ TextRenderer::TextRenderer() :
72
72
73
73
if (! boost::filesystem::exists (font_path) )
74
74
{
75
- // TODO: would it make sense to throw an exception here?
76
- // object will be incompletely constructed if font path cannot be found
77
- //
78
- // alternatively, configure location of font path on program startup, so this check
79
- // does not have to be run every time the object is constructed? (AYK)
80
- CORE_LOG_ERROR ( " Unable to locate FreeSerif.ttf in /usr/share/fonts/truetype/freefont or /usr/share/fonts/truetype." );
81
- return ;
75
+
76
+ // alternative path to freefont paths on some other linux distros (CentOS for example)
77
+ font_path = " /usr/share/fonts/gnu-free/FreeSerif.ttf" ;
78
+
79
+ if (! boost::filesystem::exists (font_path) )
80
+ {
81
+
82
+ // TODO: would it make sense to throw an exception here?
83
+ // object will be incompletely constructed if font path cannot be found
84
+ //
85
+ // alternatively, configure location of font path on program startup, so this check
86
+ // does not have to be run every time the object is constructed? (AYK)
87
+ CORE_LOG_ERROR ( " Unable to locate FreeSerif.ttf in /usr/share/fonts/truetype/freefont or /usr/share/fonts/truetype or /usr/share/fonts/gnu-free." );
88
+ return ;
89
+ }
82
90
}
83
91
}
84
92
this ->font_file_ .assign ( font_path );
Original file line number Diff line number Diff line change @@ -237,8 +237,7 @@ void GroupButtonMenu::prep_for_animation( bool move_time )
237
237
if ( move_time )
238
238
{
239
239
this ->private_ ->ui_ .facade_ ->setMinimumSize ( this ->private_ ->ui_ .group_tools_ ->size () );
240
- this ->private_ ->ui_ .facade_ ->setPixmap (
241
- QPixmap::grabWidget ( this ->private_ ->ui_ .group_tools_ ) );
240
+ this ->private_ ->ui_ .facade_ ->setPixmap ( this ->private_ ->ui_ .group_tools_ ->grab () );
242
241
this ->private_ ->ui_ .group_tools_ ->hide ();
243
242
this ->private_ ->ui_ .facade_ ->show ();
244
243
}
Original file line number Diff line number Diff line change @@ -1242,7 +1242,7 @@ void LayerWidget::prep_for_animation( bool move_time )
1242
1242
if ( move_time )
1243
1243
{
1244
1244
this ->private_ ->ui_ .facade_widget_ ->setMinimumSize ( this ->private_ ->ui_ .base_ ->size () );
1245
- this ->private_ ->ui_ .facade_widget_ ->setPixmap ( QPixmap::grabWidget ( this ) );
1245
+ this ->private_ ->ui_ .facade_widget_ ->setPixmap ( this -> grab ( ) );
1246
1246
this ->private_ ->ui_ .base_ ->hide ();
1247
1247
this ->private_ ->ui_ .facade_widget_ ->show ();
1248
1248
}
Original file line number Diff line number Diff line change @@ -111,6 +111,7 @@ namespace Seg3D
111
111
" border: none;"
112
112
" }"
113
113
" QDockWidget{"
114
+ " background-color: rgb( " BACKGROUND_COLOR " ) ;"
114
115
" color: rgb( " FONT_COLOR " ) ;"
115
116
" titlebar-close-icon: url(:/General_Icons/exit.png);"
116
117
" titlebar-normal-icon: url(:/General_Icons/maximize.png);"
Original file line number Diff line number Diff line change @@ -80,10 +80,6 @@ class QtWin32ApplicationEventFilter : public QAbstractNativeEventFilter
80
80
virtual bool nativeEventFilter (const QByteArray &eventType, void *message, long *) Q_DECL_OVERRIDE
81
81
{
82
82
#ifdef _WIN32
83
- // test
84
- // should be "windows_generic_MSG" (http://doc.qt.io/qt-5/qwidget.html#nativeEvent)?
85
- std::cerr << " Event type: " << eventType.constData () << std::endl;
86
- // test
87
83
88
84
MSG* msg = reinterpret_cast < MSG* >( message );
89
85
if ( msg->message == WM_ENTERSIZEMOVE )
You can’t perform that action at this time.
0 commit comments