Country register plugin created
This commit is contained in:
@@ -167,3 +167,14 @@ void MainWindow::openPlugin(IPlugin *plugin)
|
||||
ui->tabWidget->setCurrentIndex(ui->tabWidget->count() - 1);
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::on_actionCountry_register_triggered()
|
||||
{
|
||||
IPlugin *plugCountryReg = Context::instance().plugin("COUNTRYREGISTER");
|
||||
|
||||
if (plugCountryReg != NULL)
|
||||
{
|
||||
openPlugin(plugCountryReg);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -37,6 +37,8 @@ private slots:
|
||||
|
||||
void on_actionPost_register_triggered();
|
||||
|
||||
void on_actionCountry_register_triggered();
|
||||
|
||||
private:
|
||||
Ui::MainWindow *ui;
|
||||
LoginDialog *m_loginDialog;
|
||||
|
||||
@@ -77,6 +77,7 @@
|
||||
<string>&Registers</string>
|
||||
</property>
|
||||
<addaction name="actionPost_register"/>
|
||||
<addaction name="actionCountry_register"/>
|
||||
</widget>
|
||||
<addaction name="menuFile"/>
|
||||
<addaction name="menuRegisters"/>
|
||||
@@ -128,6 +129,11 @@
|
||||
<string>Post register</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionCountry_register">
|
||||
<property name="text">
|
||||
<string>Country register</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<layoutdefault spacing="6" margin="11"/>
|
||||
<resources>
|
||||
|
||||
Reference in New Issue
Block a user