mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +01:00
[Mac] RSSManager/AdBlockDialog documentMode was disabled and fixed double cursor problem.
This commit is contained in:
parent
1320a6cf03
commit
72c66cb218
@ -36,7 +36,9 @@ AdBlockDialog::AdBlockDialog(QWidget* parent)
|
||||
{
|
||||
setAttribute(Qt::WA_DeleteOnClose);
|
||||
setupUi(this);
|
||||
|
||||
#ifdef Q_OS_MAC
|
||||
tabWidget->setDocumentMode(false);
|
||||
#endif
|
||||
adblockCheckBox->setChecked(m_manager->isEnabled());
|
||||
|
||||
QMenu* menu = new QMenu(buttonMenu);
|
||||
|
@ -552,6 +552,7 @@ void LocationBar::hideProgress()
|
||||
|
||||
void LocationBar::paintEvent(QPaintEvent* event)
|
||||
{
|
||||
#ifndef Q_OS_MAC
|
||||
if (m_completer.isPopupVisible() && !m_completer.showingMostVisited()) {
|
||||
// We need to draw cursor when popup is visible
|
||||
// But don't paint it if we are just showing most visited sites
|
||||
@ -582,6 +583,7 @@ void LocationBar::paintEvent(QPaintEvent* event)
|
||||
p.fillRect(cursorRect, option.palette.text().color());
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (hasFocus() || text().isEmpty() || m_forceLineEditPaintEvent) {
|
||||
LineEdit::paintEvent(event);
|
||||
|
@ -43,7 +43,9 @@ RSSManager::RSSManager(QupZilla* mainClass, QWidget* parent)
|
||||
, p_QupZilla(mainClass)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
||||
#ifdef Q_OS_MAC
|
||||
ui->tabWidget->setDocumentMode(false);
|
||||
#endif
|
||||
ui->tabWidget->setElideMode(Qt::ElideRight);
|
||||
m_networkManager = mApp->networkManager();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user