Commit ab65904b authored by Jan Möbius's avatar Jan Möbius

Added Resize for MacOS

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@4908 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 74f82d07
......@@ -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() );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment