Set up the QCoreApplication information inside the custom class constructor.

metadata
Edgar Velazquez-Armendariz 2012-09-28 17:41:25 -04:00
parent 3a53f4b45d
commit 7b91595afb
1 changed files with 4 additions and 4 deletions

View File

@ -117,6 +117,10 @@ static bool minidumpCallbackWindows(const wchar_t *dump_path,
class MitsubaApplication : public QApplication {
public:
MitsubaApplication(int &argc, char **argv) : QApplication(argc, argv) {
setOrganizationName("mitsuba-renderer.org");
setOrganizationDomain("mitsuba-renderer.org");
setApplicationName("mtsgui");
setApplicationVersion(MTS_VERSION);
}
bool event(QEvent *event) {
@ -209,10 +213,6 @@ int main(int argc, char *argv[]) {
qRegisterMetaType<fs::path>("fs::path");
MitsubaApplication app(argc, argv);
app.setOrganizationName("mitsuba-renderer.org");
app.setOrganizationDomain("mitsuba-renderer.org");
app.setApplicationName("mtsgui");
app.setApplicationVersion(MTS_VERSION);
try {
QFile stylesheet(":/resources/stylesheet.css");