From a39339e06f888aba40920b2f704f01ceddb22f44 Mon Sep 17 00:00:00 2001 From: krepa098 Date: Tue, 9 Sep 2014 18:29:03 +0200 Subject: [PATCH] cleanup --- widget/form/genericchatform.cpp | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/widget/form/genericchatform.cpp b/widget/form/genericchatform.cpp index 105aa806a..fcffb2385 100644 --- a/widget/form/genericchatform.cpp +++ b/widget/form/genericchatform.cpp @@ -72,29 +72,11 @@ GenericChatForm::GenericChatForm(QObject *parent) : videoButton->setObjectName("green"); videoButton->setStyleSheet(Style::get(":/ui/videoButton/videoButton.css")); - QString volButtonStylesheet = ""; - try - { - QFile f(":/ui/volButton/volButton.css"); - f.open(QFile::ReadOnly | QFile::Text); - QTextStream volButtonStylesheetStream(&f); - volButtonStylesheet = volButtonStylesheetStream.readAll(); - } - catch (int e) {} - + QString volButtonStylesheet = Style::get(":/ui/volButton/volButton.css"); volButton->setObjectName("green"); volButton->setStyleSheet(volButtonStylesheet); - QString micButtonStylesheet = ""; - try - { - QFile f(":/ui/micButton/micButton.css"); - f.open(QFile::ReadOnly | QFile::Text); - QTextStream micButtonStylesheetStream(&f); - micButtonStylesheet = micButtonStylesheetStream.readAll(); - } - catch (int e) {} - + QString micButtonStylesheet = Style::get(":/ui/micButton/micButton.css"); micButton->setObjectName("green"); micButton->setStyleSheet(micButtonStylesheet);