Commit 3ee5f5db authored by Jan Möbius's avatar Jan Möbius
Browse files

More debug code

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@10086 383ad7c9-94d9-4d36-a494-682f7c89f535
parent e43aee91
...@@ -221,7 +221,6 @@ CoreWidget( QVector<ViewMode*>& _viewModes, ...@@ -221,7 +221,6 @@ CoreWidget( QVector<ViewMode*>& _viewModes,
splitter_->setSizes(wsizes); splitter_->setSizes(wsizes);
loggerState_ = OpenFlipper::Options::InScene; loggerState_ = OpenFlipper::Options::InScene;
baseLayout_->setContentsMargins (0, 0, 0, 16); baseLayout_->setContentsMargins (0, 0, 0, 16);
std::cerr << "Logger got new pos : " << slidingLogger_->pos().x() << "," << slidingLogger_->pos().y() << std::endl;
} else if (OpenFlipper::Options::loggerState() == OpenFlipper::Options::Hidden) { } else if (OpenFlipper::Options::loggerState() == OpenFlipper::Options::Hidden) {
splitter_->insertWidget (1, tempLogWidget); splitter_->insertWidget (1, tempLogWidget);
wsizes[0] = 1; wsizes[0] = 1;
......
...@@ -359,15 +359,22 @@ void QtSlideWindow::autohidePressed () ...@@ -359,15 +359,22 @@ void QtSlideWindow::autohidePressed ()
void QtSlideWindow::updateGeometry () void QtSlideWindow::updateGeometry ()
{ {
std::cerr << "SlideWindow update geometry" << std::endl;
if (parentWidget () && widget ()) if (parentWidget () && widget ())
{ {
setPos (8, parentWidget ()->geometry ().height () - geometry ().height ()); setPos (8, parentWidget ()->geometry ().height () - geometry ().height ());
std::cerr << "Logger got new pos 1 : " << pos().x() << "," << pos().y() << std::endl;
resize (parentWidget ()->geometry ().width () - 20, resize (parentWidget ()->geometry ().width () - 20,
widget ()->size ().height ()); widget ()->size ().height ());
if (autohideButton_)
if (autohideButton_) {
autohideButton_->setPos (geometry().width() - 12, -13); autohideButton_->setPos (geometry().width() - 12, -13);
if (detachButton_) std::cerr << "Logger got new pos autohide : " << pos().x() << "," << pos().y() << std::endl;
}
if (detachButton_) {
detachButton_->setPos (geometry().width() - 25, -13); detachButton_->setPos (geometry().width() - 25, -13);
std::cerr << "Logger got new pos detach: " << pos().x() << "," << pos().y() << std::endl;
}
} }
} }
......
...@@ -133,11 +133,6 @@ LoggerWidget::LoggerWidget( QWidget *parent) ...@@ -133,11 +133,6 @@ LoggerWidget::LoggerWidget( QWidget *parent)
vlayout->addLayout( hlayout ); vlayout->addLayout( hlayout );
setLayout( vlayout ); setLayout( vlayout );
std::cerr << "Logger Widget created with position : " ;
std::cerr << pos().x() ;
std::cerr << "," << pos().y() << std::endl;
} }
LoggerWidget::~LoggerWidget() LoggerWidget::~LoggerWidget()
......
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