Ignore:
Timestamp:
01/26/10 20:30:45 (12 years ago)
Author:
pavelpa <pavelpa@…>
Branches:
master, qt5
Children:
336fa33
Parents:
05afe5f
Message:

SqlEngine? made STATIC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gui/mainwindow.cpp

    r05afe5f r3a8dc71  
    2727{
    2828    setupUi(this);
    29 
    30     // create "SQLITE" DB instance/connection
    31     // opens DB connection (needed for EventModel)
    32     mSqlEngine = new SqlEngine(this);
    33     //mSqlEngine->initialize();
    34     importScheduleWidget->setSqlEngine(mSqlEngine);
    3529
    3630    // Sanity check for existence of any Conference in the DB
     
    127121}
    128122
    129 MainWindow::~MainWindow()
    130 {
    131     if(mSqlEngine)
    132     {
    133         delete mSqlEngine;
    134         mSqlEngine = NULL;
    135     }
    136 }
    137 
    138123void MainWindow::scheduleImported(int aConfId)
    139124{
     
    204189    QString keyword = searchEdit->text().replace( QString("%"), QString("\\%") );
    205190    qDebug() << "\nKeyword to search: " << keyword;
    206     mSqlEngine->searchEvent( AppSettings::confId(), columns, keyword );
     191    SqlEngine::searchEvent( AppSettings::confId(), columns, keyword );
    207192
    208193    QDate aStartDate = Conference::getById(AppSettings::confId()).start();
Note: See TracChangeset for help on using the changeset viewer.