From 7fe1f8843164c54bf4ca6217cc9e0afcb4500f00 Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Sun, 18 Nov 2012 13:31:49 +0100 Subject: [PATCH] More windows fixage. --- src/SocialWidget.cpp | 2 +- src/widgets/AccountsPopupWidget.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/SocialWidget.cpp b/src/SocialWidget.cpp index 5b5cf7001..2d341acd9 100644 --- a/src/SocialWidget.cpp +++ b/src/SocialWidget.cpp @@ -251,7 +251,7 @@ SocialWidget::onGeometryUpdate() QPoint position( m_position - QPoint( size().width(), size().height() ) + QPoint( 2 + ARROW_HEIGHT * 3, 0 ) ); #ifdef Q_OS_WIN - position.ry() -= 12 + ARROW_HEIGHT; + position.ry() -= 18/*margins I guess*/ + ARROW_HEIGHT; #endif if ( position != pos() ) { diff --git a/src/widgets/AccountsPopupWidget.cpp b/src/widgets/AccountsPopupWidget.cpp index 650e10d4d..efb6014c8 100644 --- a/src/widgets/AccountsPopupWidget.cpp +++ b/src/widgets/AccountsPopupWidget.cpp @@ -35,7 +35,9 @@ AccountsPopupWidget::AccountsPopupWidget( QWidget* parent ) , m_widget( 0 ) , m_arrowOffset( 0 ) { +#ifndef Q_OS_WIN setWindowFlags( Qt::FramelessWindowHint ); +#endif setWindowFlags( Qt::Popup ); //Uncomment this if using a debugger: //setWindowFlags( Qt::Window );