Commit 0d1cf395 authored by Jan Möbius's avatar Jan Möbius
Browse files

Debuggin code for tracing bug

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@11554 383ad7c9-94d9-4d36-a494-682f7c89f535
parent ce551c31
......@@ -134,6 +134,7 @@ void QtPickToolbar::paintWindowFrame(QPainter *_painter,
const QStyleOptionGraphicsItem* /*_option*/,
QWidget* /*_widget*/ )
{
std::cerr << "paintWindowFrame at " << w << " " << h << std::endl;
int w = geometry().width();
int h = geometry().height();
......@@ -164,6 +165,9 @@ Qt::WindowFrameSection QtPickToolbar::windowFrameSectionAt(const QPointF &/*_pos
void QtPickToolbar::updateGeometry ()
{
std::cerr << "updateGeometry" << std::endl;
if (parentWidget () && widget ())
{
resize (qMin ((int)parentWidget ()->geometry ().width () - 20, widget ()->sizeHint ().width ()),
......
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