Skip to content

Commit

Permalink
add ShowBubbleNotification API
Browse files Browse the repository at this point in the history
  • Loading branch information
altairwei committed Dec 5, 2021
1 parent 975c0b6 commit aa4a700
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/api/ApiWizExplorerApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ QObject* ApiWizExplorerApp::GetGroupDatabase(const QString &kbGUID)
return m_database->GetGroupDatabase(kbGUID);
}

void ApiWizExplorerApp::ShowBubbleNotification(const QString &strTitle, const QString &strInfo)
{
m_mainWindow->showBubbleNotification(strTitle, strInfo);
}

QString ApiWizExplorerApp::TranslateString(const QString& string)
{
return m_mainWindow->TranslateString(string);
Expand Down
1 change: 1 addition & 0 deletions src/api/ApiWizExplorerApp.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class ApiWizExplorerApp : public QObject
Q_INVOKABLE void ProcessClipboardBeforePaste(const QVariantMap& data);
Q_INVOKABLE QString Locale();
Q_INVOKABLE QObject* GetGroupDatabase(const QString &kbGUID);
Q_INVOKABLE void ShowBubbleNotification(const QString &strTitle, const QString &strInfo);

//NOTE: these functions would called by web page, do not delete
Q_INVOKABLE QString TranslateString(const QString& string);
Expand Down

0 comments on commit aa4a700

Please sign in to comment.