mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 17:24:24 +02:00
expose to scripts the ability to open the feed
This commit is contained in:
parent
48ff26eeb7
commit
2a099d5577
2 changed files with 6 additions and 0 deletions
|
@ -26,3 +26,8 @@ void DialogsManagerScriptingInterface::toggleAddressBar() {
|
||||||
QMetaObject::invokeMethod(DependencyManager::get<DialogsManager>().data(),
|
QMetaObject::invokeMethod(DependencyManager::get<DialogsManager>().data(),
|
||||||
"toggleAddressBar", Qt::QueuedConnection);
|
"toggleAddressBar", Qt::QueuedConnection);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void DialogsManagerScriptingInterface::showFeed() {
|
||||||
|
QMetaObject::invokeMethod(DependencyManager::get<DialogsManager>().data(),
|
||||||
|
"showFeed", Qt::QueuedConnection);
|
||||||
|
}
|
||||||
|
|
|
@ -18,6 +18,7 @@ class DialogsManagerScriptingInterface : public QObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
DialogsManagerScriptingInterface();
|
DialogsManagerScriptingInterface();
|
||||||
|
Q_INVOKABLE void showFeed();
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void toggleAddressBar();
|
void toggleAddressBar();
|
||||||
|
|
Loading…
Reference in a new issue