Changeset 10869


Ignore:
Timestamp:
Jun 26, 2010, 5:17:58 PM (12 years ago)
Author:
Longinus00
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0x/qt/mainwin.cc

    r10860 r10869  
    11801180{
    11811181    QSet<int> ids;
    1182     QMessageBox * msgBox = new QMessageBox( this );
     1182    QMessageBox msgBox( this );
    11831183    QString primary_text, secondary_text;
    11841184    int incomplete = 0;
     
    12531253    }
    12541254
    1255     msgBox->setWindowTitle( QString(" ") );
    1256     msgBox->setText( QString( "<big><b>%1</big></b>" ).arg( primary_text ) );
    1257     msgBox->setInformativeText( secondary_text );
    1258     msgBox->setStandardButtons( QMessageBox::Ok | QMessageBox::Cancel );
    1259     msgBox->setDefaultButton( QMessageBox::Cancel );
    1260     msgBox->setIcon( QMessageBox::Question );
     1255    msgBox.setWindowTitle( QString(" ") );
     1256    msgBox.setText( QString( "<big><b>%1</big></b>" ).arg( primary_text ) );
     1257    msgBox.setInformativeText( secondary_text );
     1258    msgBox.setStandardButtons( QMessageBox::Ok | QMessageBox::Cancel );
     1259    msgBox.setDefaultButton( QMessageBox::Cancel );
     1260    msgBox.setIcon( QMessageBox::Question );
    12611261    /* hack needed to keep the dialog from being too narrow */
    1262     QGridLayout* layout = (QGridLayout*)msgBox->layout();
     1262    QGridLayout* layout = (QGridLayout*)msgBox.layout();
    12631263    QSpacerItem* spacer = new QSpacerItem( 450, 0, QSizePolicy::Minimum, QSizePolicy::Expanding );
    12641264    layout->addItem( spacer, layout->rowCount(), 0, 1, layout->columnCount() );
    12651265
    1266     if( msgBox->exec() == QMessageBox::Ok )
     1266    if( msgBox.exec() == QMessageBox::Ok )
    12671267    {
    12681268        ui.listView->selectionModel()->clear();
Note: See TracChangeset for help on using the changeset viewer.