Changeset 10795 for trunk/qt/mainwin.cc


Ignore:
Timestamp:
Jun 18, 2010, 4:22:39 AM (12 years ago)
Author:
Longinus00
Message:

(qt) #3312:Error in r10722 (fix for #3255)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/qt/mainwin.cc

    r10790 r10795  
    11761176{
    11771177    QSet<int> ids;
    1178     QMessageBox * msgBox = new QMessageBox( this );
     1178    QMessageBox msgBox( this );
    11791179    QString primary_text, secondary_text;
    11801180    int incomplete = 0;
     
    12491249    }
    12501250
    1251     msgBox->setWindowTitle( QString(" ") );
    1252     msgBox->setText( QString( "<big><b>%1</big></b>" ).arg( primary_text ) );
    1253     msgBox->setInformativeText( secondary_text );
    1254     msgBox->setStandardButtons( QMessageBox::Ok | QMessageBox::Cancel );
    1255     msgBox->setDefaultButton( QMessageBox::Cancel );
    1256     msgBox->setIcon( QMessageBox::Question );
     1251    msgBox.setWindowTitle( QString(" ") );
     1252    msgBox.setText( QString( "<big><b>%1</big></b>" ).arg( primary_text ) );
     1253    msgBox.setInformativeText( secondary_text );
     1254    msgBox.setStandardButtons( QMessageBox::Ok | QMessageBox::Cancel );
     1255    msgBox.setDefaultButton( QMessageBox::Cancel );
     1256    msgBox.setIcon( QMessageBox::Question );
    12571257    /* hack needed to keep the dialog from being too narrow */
    1258     QGridLayout* layout = (QGridLayout*)msgBox->layout();
     1258    QGridLayout* layout = (QGridLayout*)msgBox.layout();
    12591259    QSpacerItem* spacer = new QSpacerItem( 450, 0, QSizePolicy::Minimum, QSizePolicy::Expanding );
    12601260    layout->addItem( spacer, layout->rowCount(), 0, 1, layout->columnCount() );
    12611261
    1262     if( msgBox->exec() == QMessageBox::Ok )
     1262    if( msgBox.exec() == QMessageBox::Ok )
    12631263    {
    12641264        ui.listView->selectionModel()->clear();
Note: See TracChangeset for help on using the changeset viewer.