Add initial DBus support

This commit is contained in:
lupoDharkael
2017-06-06 12:39:25 +02:00
parent 11b0e2db4b
commit 6fb14b91bb
9 changed files with 152 additions and 7 deletions

View File

@@ -44,7 +44,7 @@ Controller::Controller(QObject *parent) : QObject(parent),
m_nativeEventFilter = new NativeEventFilter(this);
qApp->installNativeEventFilter(m_nativeEventFilter);
connect(m_nativeEventFilter, &NativeEventFilter::activated, this, &Controller::slotPrintHotkey);
connect(m_nativeEventFilter, &NativeEventFilter::activated, this, &Controller::createCapture);
QString StyleSheet = Button::getStyle();
qApp->setStyleSheet(StyleSheet);
@@ -114,7 +114,7 @@ void Controller::initDefaults() {
}
// creation of a new capture
void Controller::slotPrintHotkey() {
void Controller::createCapture() {
if (!m_captureWindow) {
m_captureWindow = new CaptureWidget();
connect(m_captureWindow, &CaptureWidget::newMessage,