From ab65904bcdd5d43644508b78e0387a863c70ac1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20M=C3=B6bius?= Date: Mon, 16 Feb 2009 18:21:25 +0000 Subject: [PATCH] Added Resize for MacOS git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@4908 383ad7c9-94d9-4d36-a494-682f7c89f535 --- Core/Core.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Core/Core.cc b/Core/Core.cc index 14add99c..38637899 100644 --- a/Core/Core.cc +++ b/Core/Core.cc @@ -207,21 +207,22 @@ Core::init() { connect(coreWidget_, SIGNAL(call(QString,bool&)), this, SLOT(slotCall(QString,bool&))); QRect rect = QApplication::desktop()->screenGeometry(); - std::cerr << "Width : " << rect.width() << std::endl;; - std::cerr << "Height: " << rect.height() << std::endl; uint width = rect.width(); if ( width > 1000 ) { width = 1000; - std::cerr << "Full width" << std::endl; } uint height = rect.height(); if ( height > 1000 ) { height = 1000; - std::cerr << "Full height" << std::endl; } +#ifdef ARCH_DARWIN + width = rect.width() - 300; + height = rect.height() - 150; +#endif + coreWidget_->resize(width,height); coreWidget_->setWindowTitle( OpenFlipper::Options::windowTitle() ); -- GitLab