Commit b2a3e0d8 authored by Thomas Hartmann's avatar Thomas Hartmann

QmlDesigner: toolTip for FileWidget

parent 30a0379f
......@@ -236,7 +236,7 @@ class BauhausColorDialog : public QFrame {
Q_OBJECT
Q_PROPERTY(QColor color READ color WRITE setColor NOTIFY colorChanged)
Q_PROPERTY(QColor color READ color WRITE setColor NOTIFY colorChanged)
public:
BauhausColorDialog(QWidget *parent = 0);
......
......@@ -117,10 +117,14 @@ void FileWidget::setFileName(const QUrl &fileName)
return;
m_fileName = fileName;
if (m_lineEdit->text() != fileName.toString())
if (m_lineEdit->text() != fileName.toString()) {
m_lineEdit->setText(fileName.toString());
if (m_comboBox->currentText() != fileName.toString())
m_lineEdit->setToolTip(m_fileName.toString());
}
if (m_comboBox->currentText() != fileName.toString()) {
m_comboBox->setEditText(m_fileName.toString());
m_comboBox->setToolTip(m_fileName.toString());
}
emit fileNameChanged(fileName);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment