PierreA
31st December 2017, 11:06
bool TinCanvas::mouseCheckImported()
{
bool ret;
if (doc.pl[plnum].whichBreak0Valid==1)
{
QMessageBox msgBox(this);
msgBox.setText(tr("You have imported breaklines."));
msgBox.setInformativeText(tr("Do you want to edit?"));
msgBox.setStandardButtons(QMessageBox::Yes|QMessag eBox::No);
msgBox.setIcon(QMessageBox::Question);
msgBox.setDefaultButton(QMessageBox::No);
ret=msgBox.exec()==QMessageBox::Yes;
}
else
ret=true;
return ret;
}
When I run the program and click on an edge after importing breaklines, this message box pops up, but its icon is (i), not (?), and neither button looks like the default. I've tested it and found that the default button is, in fact, "No".
I'm running Kubuntu Xenial; "ldd `which kate`" shows that it is using Qt5, as is my program.
{
bool ret;
if (doc.pl[plnum].whichBreak0Valid==1)
{
QMessageBox msgBox(this);
msgBox.setText(tr("You have imported breaklines."));
msgBox.setInformativeText(tr("Do you want to edit?"));
msgBox.setStandardButtons(QMessageBox::Yes|QMessag eBox::No);
msgBox.setIcon(QMessageBox::Question);
msgBox.setDefaultButton(QMessageBox::No);
ret=msgBox.exec()==QMessageBox::Yes;
}
else
ret=true;
return ret;
}
When I run the program and click on an edge after importing breaklines, this message box pops up, but its icon is (i), not (?), and neither button looks like the default. I've tested it and found that the default button is, in fact, "No".
I'm running Kubuntu Xenial; "ldd `which kate`" shows that it is using Qt5, as is my program.