Hello folks,
QT assistant provides me with the following bit of code:
Code:
 QMessageBox msgBox;
 QPushButton *connectButton = msgBox.addButton(tr("Connect"), QMessageBox::ActionRole);
 QPushButton *abortButton = msgBox.addButton(QMessageBox::Abort);

 msgBox.exec();

 if (msgBox.clickedButton() == connectButton) {
     // connect
 } else if (msgBox.clickedButton() == abortButton) {
     // abort
 }
When compiling it with GCCE, I get a compiler error about a explicit typecast being needed.

The correct (compiling) code looks like this - just look at the casts in the if and ignore the rest (altough sewtting a text title might also pay off):
Code:
			QMessageBox msgBox;
					QPushButton *okButton = msgBox.addButton("Connect", QMessageBox::ActionRole);
					QPushButton *neverAgainButton = msgBox.addButton("Don't show again",QMessageBox::ActionRole);
					msgBox.setText("Welcome to level 2! Tap the status bar to pause the game...");
					msgBox.exec();
					
					if (msgBox.clickedButton() == (QAbstractButton*)okButton) 
					{
					 // do nothing special
					} 
					else if (msgBox.clickedButton() == (QAbstractButton*)neverAgainButton) 
					{//block forever
					 prefs.hintsettings.lvlclearedhint=1;
					}
PLEASE, someone, forward this to the QT heads.