[GB.QT4]
* NEW: Remove translation warning message at startup. It scares users. * NEW: Try to enforce tooltip move when setting a new tooltip while it is visible. git-svn-id: svn://localhost/gambas/trunk@5467 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
parent
ad71dc85bf
commit
52106f4f0b
2 changed files with 16 additions and 3 deletions
|
@ -1629,7 +1629,20 @@ BEGIN_PROPERTY(Control_Tooltip)
|
|||
if (READ_PROPERTY)
|
||||
GB.ReturnNewZeroString(TO_UTF8(WIDGET->toolTip()));
|
||||
else
|
||||
WIDGET->setToolTip(QSTRING_PROP());
|
||||
{
|
||||
QString tip = QSTRING_PROP();
|
||||
if (THIS->flag.inside)
|
||||
{
|
||||
if (tip.isEmpty())
|
||||
QToolTip::hideText();
|
||||
else if (QToolTip::isVisible())
|
||||
{
|
||||
QToolTip::hideText();
|
||||
QToolTip::showText(QCursor::pos(), tip, WIDGET);
|
||||
}
|
||||
}
|
||||
WIDGET->setToolTip(tip);
|
||||
}
|
||||
|
||||
END_PROPERTY
|
||||
|
||||
|
|
|
@ -704,8 +704,8 @@ static void init_lang(char *lang, bool rtl)
|
|||
delete _translator;
|
||||
_translator = NULL;
|
||||
|
||||
if (strcmp(lang, "C"))
|
||||
qDebug("gb.qt4: warning: unable to load Qt translation: %s", lang);
|
||||
//if (strcmp(lang, "C"))
|
||||
// qDebug("gb.qt4: warning: unable to load Qt translation: %s", lang);
|
||||
|
||||
goto __SET_DIRECTION;
|
||||
|
||||
|
|
Loading…
Reference in a new issue