mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 01:22:10 +01:00
commit
6f060fa1b9
|
@ -114,6 +114,12 @@ void PIM_Handler::populateWebViewMenu(QMenu* menu, WebView* view, const QWebHitT
|
|||
|
||||
QMenu* pimMenu = new QMenu(tr("Insert Personal Information"));
|
||||
pimMenu->setIcon(QIcon(":/PIM/data/PIM.png"));
|
||||
|
||||
if (!m_allInfo[PI_FirstName].isEmpty() && !m_allInfo[PI_LastName].isEmpty()) {
|
||||
const QString fullname = m_allInfo[PI_FirstName] + " " + m_allInfo[PI_LastName];
|
||||
QAction* action = pimMenu->addAction(fullname, this, SLOT(pimInsert()));
|
||||
action->setData(fullname);
|
||||
}
|
||||
|
||||
for (int i = 0; i < PI_Max; ++i) {
|
||||
const QString &info = m_allInfo[PI_Type(i)];
|
||||
|
@ -121,8 +127,9 @@ void PIM_Handler::populateWebViewMenu(QMenu* menu, WebView* view, const QWebHitT
|
|||
continue;
|
||||
}
|
||||
|
||||
QAction* action = pimMenu->addAction(m_translations[PI_Type(i)], this, SLOT(pimInsert()));
|
||||
QAction* action = pimMenu->addAction(info, this, SLOT(pimInsert()));
|
||||
action->setData(info);
|
||||
action->setStatusTip(m_translations[PI_Type(i)]);
|
||||
}
|
||||
|
||||
pimMenu->addSeparator();
|
||||
|
|
Loading…
Reference in New Issue
Block a user