Skip to content

Commit

Permalink
add qchat action to toolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
gounux committed Jul 21, 2024
1 parent 42b01cd commit 4089ebe
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions qtribu/plugin_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,20 +114,25 @@ def initGui(self):
self.tr("Propose a news to the next GeoRDP"),
self.iface.mainWindow(),
)
self.action_form_rdp_news.setToolTip(
self.tr("Propose a news to the next GeoRDP")
)
self.action_form_rdp_news.triggered.connect(self.open_form_rdp_news)

self.action_form_article = QAction(
ICON_ARTICLE,
self.tr("Submit an article"),
self.iface.mainWindow(),
)
self.action_form_article.setToolTip(self.tr("Submit an article"))
self.action_form_article.triggered.connect(self.open_form_article)

self.action_open_chat = QAction(
QgsApplication.getThemeIcon("mMessageLog.svg"),
self.tr("QChat"),
self.iface.mainWindow(),
)
self.action_open_chat.setToolTip(self.tr("QChat"))
self.action_open_chat.triggered.connect(self.open_chat)

self.action_help = QAction(
Expand Down Expand Up @@ -201,6 +206,7 @@ def initGui(self):
# -- Toolbar
self.toolbar.addAction(self.action_run)
self.toolbar.addAction(self.action_open_contents)
self.toolbar.addAction(self.action_open_chat)
self.toolbar.addAction(self.action_form_rdp_news)
self.toolbar.addAction(self.action_form_article)

Expand Down

0 comments on commit 4089ebe

Please sign in to comment.