i have subclass QFileDialog
FileDialog
::FileDialog(QWidget * parent, Qt
::WindowFlags flags
){
setLabelText
(QFileDialog::LookIn, tr
("text1"));
//...OK setLabelText
(QFileDialog::FileName, tr
("text2"));
// text staying == "File name:" setLabelText
(QFileDialog::FileType, tr
("text3"));
//...OK setLabelText
(QFileDialog::Accept, tr
("text4"));
//...OK setLabelText
(QFileDialog::Reject, tr
("text5"));
//...OK}
FileDialog::FileDialog(QWidget * parent, Qt::WindowFlags flags)
: QFileDialog ( parent, flags )
{
setLabelText(QFileDialog::LookIn, tr("text1")); //...OK
setLabelText(QFileDialog::FileName, tr("text2")); // text staying == "File name:"
setLabelText(QFileDialog::FileType, tr("text3")); //...OK
setLabelText(QFileDialog::Accept, tr("text4")); //...OK
setLabelText(QFileDialog::Reject, tr("text5")); //...OK
}
To copy to clipboard, switch view to plain text mode
plz somebody check it - it's my bug or not
Linux, qt4.2.2
Bookmarks