void SeafileApplet::start() { refreshQss(); configurator_->checkInit(); initLog(); account_mgr_->start(); certs_mgr_->start(); #if defined(Q_OS_WIN32) QString crash_rpt_path = QDir(configurator_->ccnetDir()).filePath("logs/seafile-crash-report.txt"); if (!g_setenv ("CRASH_RPT_PATH", toCStr(crash_rpt_path), FALSE)) qWarning("Failed to set CRASH_RPT_PATH env variable.\n"); #endif // // start daemons // daemon_mgr_->startCcnetDaemon(); connect(daemon_mgr_, SIGNAL(daemonStarted()), this, SLOT(onDaemonStarted())); }
void SeafileApplet::start() { refreshQss(); configurator_->checkInit(); initLog(); account_mgr_->start(); certs_mgr_->start(); AvatarService::instance()->start(); SeahubNotificationsMonitor::instance()->start(); #if defined(Q_WS_WIN) QString crash_rpt_path = QDir(configurator_->ccnetDir()).filePath("logs/seafile-crash-report.txt"); if (!g_setenv ("CRASH_RPT_PATH", toCStr(crash_rpt_path), FALSE)) qDebug("Failed to set CRASH_RPT_PATH env variable.\n"); #endif daemon_mgr_->startCcnetDaemon(); connect(daemon_mgr_, SIGNAL(daemonStarted()), this, SLOT(onDaemonStarted())); }
void MainWindow::keyPressEvent(QKeyEvent *event) { if (event->key() == Qt::Key_F5) { refreshQss(); return; } QMainWindow::keyPressEvent(event); }
void MainWindow::keyPressEvent(QKeyEvent *event) { if (event->key() == Qt::Key_F5) { refreshQss(); return; } // if (event->key() == Qt::Key_F6) { // showTestDialog(this); // return; // } QMainWindow::keyPressEvent(event); }
void MainWindow::createActions() { refresh_qss_action_ = new QAction(QIcon(":/images/refresh.png"), tr("Refresh"), this); connect(refresh_qss_action_, SIGNAL(triggered()), this, SLOT(refreshQss())); }