Changeset 860
- Timestamp:
- 06/04/07 05:32:01 (2 years ago)
- Location:
- trunk/jahwidgets/src/qt3
- Files:
-
- 3 modified
-
python/widget_handle.cpp (modified) (1 diff)
-
wrapper/widget_handle.cpp (modified) (2 diffs)
-
wrapper/widget_handle.hpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/jahwidgets/src/qt3/python/widget_handle.cpp
r842 r860 117 117 .def( "show_minimized", &jahwidgets::qt3::widget_handle::show_minimized ) 118 118 .def( "show_normal", &jahwidgets::qt3::widget_handle::show_normal ) 119 .def( "is_maximized", &jahwidgets::qt3::widget_handle::is_maximized ) 120 .def( "is_minimized", &jahwidgets::qt3::widget_handle::is_minimized ) 119 121 .def( "set_always_on_top", &jahwidgets::qt3::widget_handle::set_always_on_top ) 120 122 .def( "toggle_full_screen", &jahwidgets::qt3::widget_handle::toggle_full_screen ) -
trunk/jahwidgets/src/qt3/wrapper/widget_handle.cpp
r842 r860 376 376 bool keyPressEvent( QKeyEvent* event ) 377 377 { 378 //qDebug( "widget_handle_private::keyPressEvent: widget(%s)", widget->name() );379 //qDebug( "actions: %d", (int)actions.size() );378 //qDebug( "widget_handle_private::keyPressEvent: %d (%d)", event->key(), event->state() ); 379 //qDebug( "widget(%s)", widget->name() ); 380 380 381 381 jw::action_set::const_iterator I = actions.begin(); … … 486 486 } 487 487 488 bool widget_handle::is_maximized() const 489 { 490 return m_impl->widget->windowState() & Qt::WindowMaximized; 491 } 492 493 bool widget_handle::is_minimized() const 494 { 495 return m_impl->widget->windowState() & Qt::WindowMinimized; 496 } 497 488 498 void widget_handle::set_always_on_top( bool b ) 489 499 { -
trunk/jahwidgets/src/qt3/wrapper/widget_handle.hpp
r842 r860 60 60 61 61 /// maximize/minimize/normal 62 /// TODO: Could do this via properties... 62 63 void show_maximized(); 63 64 void show_minimized(); 64 65 void show_normal(); 66 67 bool is_maximized() const; 68 bool is_minimized() const; 65 69 66 70 /// make the widget always be on top; sets the WStyle_StaysOnTop flag
