mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Delay Qt ui construction
The Qt ui will need to read the dive_table to populate widgets with dives. Gtk functionality in init_ui is required to parse the dives. Split init_ui to allow parsing to proceed and complete before Qt ui mainwindow constructor is called. Play with qDebug()'s printf style (Thiago!) Signed-off-by: Amit Chaudhuri <amit.k.chaudhuri@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
115ee47bfc
commit
073be111f4
5 changed files with 17 additions and 9 deletions
|
@ -46,6 +46,10 @@ MainWindow::MainWindow() : ui(new Ui::MainWindow())
|
|||
dive = new DiveItem(1,QString("01/03/13"),14.2, 29.0,QString("Wraysbury"),root);
|
||||
|
||||
Q_UNUSED(dive)
|
||||
|
||||
qDebug("dive_table checks - number of dives is %d", dive_table.nr);
|
||||
qDebug("# allocated dives = %d, pre-existing = %d",
|
||||
dive_table.allocated, dive_table.preexisting);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue