equal
deleted
inserted
replaced
266 /*! |
266 /*! |
267 * Private slot |
267 * Private slot |
268 */ |
268 */ |
269 void Win32Window::changeTheme( const QString& theme ) |
269 void Win32Window::changeTheme( const QString& theme ) |
270 { |
270 { |
|
271 LOG_FORMAT( "Changing to theme %s", GETSTRING( theme ) ); |
271 QLocalSocket socket; |
272 QLocalSocket socket; |
272 socket.connectToServer( "hbthemeserver" ); |
273 socket.connectToServer( "hbthemeserver" ); |
273 if ( socket.waitForConnected( 3000 ) ) { |
274 if ( socket.waitForConnected( 3000 ) ) { |
274 QByteArray outputByteArray; |
275 QByteArray outputByteArray; |
275 QDataStream outputDataStream( &outputByteArray, QIODevice::WriteOnly ); |
276 QDataStream outputDataStream( &outputByteArray, QIODevice::WriteOnly ); |
340 QString envDir = qgetenv( "HB_THEMES_DIR" ); |
341 QString envDir = qgetenv( "HB_THEMES_DIR" ); |
341 if ( !envDir.isEmpty() ) { |
342 if ( !envDir.isEmpty() ) { |
342 rootDirs << envDir; |
343 rootDirs << envDir; |
343 } |
344 } |
344 |
345 |
345 rootDirs << HB_RESOURCES_DIR; |
346 QString resourcesDir = HB_RESOURCES_DIR; |
|
347 if ( resourcesDir.isEmpty() ) { |
|
348 resourcesDir = "/hb_dev/src/hbcore/resources"; |
|
349 } |
|
350 rootDirs << resourcesDir; |
346 |
351 |
347 return rootDirs; |
352 return rootDirs; |
348 } |
353 } |