-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Partially fixes the build of the gqb plugin on pgModeler 1.1.x. (#27)
- Loading branch information
Showing
5 changed files
with
49 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,46 +20,52 @@ | |
#include "exception.h" | ||
#include "messagebox.h" | ||
#include "mainwindow.h" | ||
#include "guiutilsns.h" | ||
|
||
GraphicalQueryBuilder::GraphicalQueryBuilder(void) | ||
GraphicalQueryBuilder::GraphicalQueryBuilder() | ||
{ | ||
configurePluginInfo(getPluginTitle(), | ||
getPluginVersion(), | ||
getPluginAuthor(), | ||
getPluginDescription(), | ||
|
||
GlobalAttributes::getPluginsDir() + | ||
GlobalAttributes::DirSeparator + | ||
QString("graphicalquerybuilder") + | ||
GlobalAttributes::DirSeparator + QString("graphicalquerybuilder.png")); | ||
getPluginVersion(), | ||
getPluginAuthor(), | ||
getPluginDescription()); | ||
|
||
is_plugin_active=false; | ||
} | ||
|
||
QString GraphicalQueryBuilder::getPluginTitle(void) | ||
QString GraphicalQueryBuilder::getPluginTitle() const | ||
{ | ||
return(tr("Graphical query builder")); | ||
} | ||
|
||
|
||
QString GraphicalQueryBuilder::getPluginVersion(void) | ||
QString GraphicalQueryBuilder::getPluginVersion() const | ||
{ | ||
return(QString("0.9.2")); | ||
return(QString("0.1.0")); | ||
} | ||
|
||
QString GraphicalQueryBuilder::getPluginAuthor(void) | ||
QString GraphicalQueryBuilder::getPluginAuthor() const | ||
{ | ||
return(QString("Maxime Chambonnet [email protected]")); | ||
} | ||
|
||
QString GraphicalQueryBuilder::getPluginDescription(void) | ||
QString GraphicalQueryBuilder::getPluginDescription() const | ||
{ | ||
return(tr("Check documentation, source code and report bugs at : \ | ||
\n https://www.github.com/pgmodeler/plugins/graphicalquerybuilder \ | ||
\n https://www.gitlab.com/maxzor/pgmodeler_gqb")); | ||
} | ||
|
||
void GraphicalQueryBuilder::showPluginInfo(void) | ||
QAction *GraphicalQueryBuilder::getAction(ActionId act_id) const | ||
{ | ||
return nullptr; | ||
} | ||
|
||
QToolButton *GraphicalQueryBuilder::getToolButton() const | ||
{ | ||
return nullptr; | ||
} | ||
|
||
void GraphicalQueryBuilder::showPluginInfo() | ||
{ | ||
plugin_info_frm->show(); | ||
} | ||
|
@@ -246,12 +252,12 @@ void GraphicalQueryBuilder::adjustViewportToItems(QList<BaseObjectView *> items) | |
} | ||
|
||
|
||
QKeySequence GraphicalQueryBuilder::getPluginShortcut(void) | ||
QKeySequence GraphicalQueryBuilder::getPluginShortcut() | ||
{ | ||
return(QKeySequence(QString("Ctrl+J"))); | ||
} | ||
|
||
bool GraphicalQueryBuilder::hasMenuAction(void) | ||
bool GraphicalQueryBuilder::hasMenuAction() | ||
{ | ||
return(false); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters