Added setting to override the Qt style.

git-svn-id: http://yate.null.ro/svn/yate/trunk@2946 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2009-11-13 13:12:07 +00:00
parent f06dc5c814
commit 371c05f82e
2 changed files with 10 additions and 1 deletions

View File

@ -2518,6 +2518,9 @@ void QtClient::cleanup()
void QtClient::run()
{
const char* style = Engine::config().getValue("client","style");
if (style && !QApplication::setStyle(QString::fromUtf8(style)))
Debug(ClientDriver::self(),DebugWarn,"Could not set Qt style '%s'",style);
int argc = 0;
char* argv = 0;
m_app = new QApplication(argc,&argv);

View File

@ -3,3 +3,9 @@
[localsym]
h323chan.yate=yes
[client]
;skin=default
;style=
;device=
;greeting=Yate ${version} - ${release}