setup for qdiget callback done

This commit is contained in:
Djairo Hougee 2024-05-26 11:36:24 +02:00
parent 7d7e1a5b95
commit 19166cc14d
2 changed files with 8 additions and 6 deletions

View File

@ -36,7 +36,7 @@ MainWindow::MainWindow(QWidget* parent)
// TODO: implement feature to call this function on widget // TODO: implement feature to call this function on widget
// l->cycleGlyphStyle(); // l->cycleGlyphStyle();
Program *program = this->ui->getProgram(); Program *program = this->ui->program;
program->addLayer(new BackgroundImage(dataPath + "/map_qgis_1035.png")); program->addLayer(new BackgroundImage(dataPath + "/map_qgis_1035.png"));
// TODO: implement feature to cycle between layers thru QT // TODO: implement feature to cycle between layers thru QT
program->addLayer(new EGlyphLayer(uvGrid)); program->addLayer(new EGlyphLayer(uvGrid));
@ -51,15 +51,21 @@ MainWindow::~MainWindow() {
} }
/* --------------------------------------------------------------------
* + QTWidget callbacks +
* --------------------------------------------------------------------*/
void MainWindow::on_FirstButton_clicked(bool checked) { void MainWindow::on_FirstButton_clicked(bool checked) {
if (checked) { if (checked) {
cout << "clicked button 1!" << endl;
} }
} }
void MainWindow::on_SecondButton_clicked(bool checked) { void MainWindow::on_SecondButton_clicked(bool checked) {
if (checked) { if (checked) {
cout << "clicked button 2!" << endl;
} }
} }

View File

@ -55,10 +55,6 @@ public:
QRadioButton *IregularlySubsampledButton; QRadioButton *IregularlySubsampledButton;
Program *program; Program *program;
Program* getProgram() {
return program;
}
void setupUi(QMainWindow *MainWindow) void setupUi(QMainWindow *MainWindow)
{ {
if (MainWindow->objectName().isEmpty()) if (MainWindow->objectName().isEmpty())