Changeset 3a8dc71 in confclerk_git for src/gui/mainwindow.cpp
- Timestamp:
- 01/26/10 20:30:45 (13 years ago)
- Branches:
- master, qt5
- Children:
- 336fa33
- Parents:
- 05afe5f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/gui/mainwindow.cpp
r05afe5f r3a8dc71 27 27 { 28 28 setupUi(this); 29 30 // create "SQLITE" DB instance/connection31 // opens DB connection (needed for EventModel)32 mSqlEngine = new SqlEngine(this);33 //mSqlEngine->initialize();34 importScheduleWidget->setSqlEngine(mSqlEngine);35 29 36 30 // Sanity check for existence of any Conference in the DB … … 127 121 } 128 122 129 MainWindow::~MainWindow()130 {131 if(mSqlEngine)132 {133 delete mSqlEngine;134 mSqlEngine = NULL;135 }136 }137 138 123 void MainWindow::scheduleImported(int aConfId) 139 124 { … … 204 189 QString keyword = searchEdit->text().replace( QString("%"), QString("\\%") ); 205 190 qDebug() << "\nKeyword to search: " << keyword; 206 mSqlEngine->searchEvent( AppSettings::confId(), columns, keyword );191 SqlEngine::searchEvent( AppSettings::confId(), columns, keyword ); 207 192 208 193 QDate aStartDate = Conference::getById(AppSettings::confId()).start();
Note: See TracChangeset
for help on using the changeset viewer.