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:
parent
f06dc5c814
commit
371c05f82e
|
@ -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);
|
||||
|
@ -2596,7 +2599,7 @@ bool QtClient::chooseFile(Window* parent, NamedList& params)
|
|||
// child dialog and we might have incomplete (not full) custom styled controls
|
||||
QFileDialog* dlg = new QFileDialog(0,setUtf8(params.getValue("caption")),
|
||||
setUtf8(params.getValue("dir")));
|
||||
|
||||
|
||||
if (wnd)
|
||||
dlg->setWindowIcon(wnd->windowIcon());
|
||||
|
||||
|
|
|
@ -3,3 +3,9 @@
|
|||
|
||||
[localsym]
|
||||
h323chan.yate=yes
|
||||
|
||||
[client]
|
||||
;skin=default
|
||||
;style=
|
||||
;device=
|
||||
;greeting=Yate ${version} - ${release}
|
||||
|
|
Loading…
Reference in New Issue