diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-08 20:16:29 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-08 20:16:29 -0600 |
commit | 511779841007afca5231e6c69e996eba0295eaae (patch) | |
tree | b730d389a8ece9421712ed1fc75ae81459d4ee0f /krandr/randr.h | |
parent | 5f99a2718025c4f2fbef86a450423a9c61e297f9 (diff) | |
download | tdelibs-511779841007afca5231e6c69e996eba0295eaae.tar.gz tdelibs-511779841007afca5231e6c69e996eba0295eaae.zip |
Fix krandr crashes and uninitialized variables
Work around kcmshell minimum size problem by using icon mode instead of plain page mode in the kcmshell janus widget
Diffstat (limited to 'krandr/randr.h')
-rw-r--r-- | krandr/randr.h | 77 |
1 files changed, 41 insertions, 36 deletions
diff --git a/krandr/randr.h b/krandr/randr.h index 5e77016f2..b2832ef60 100644 --- a/krandr/randr.h +++ b/krandr/randr.h @@ -29,42 +29,47 @@ class KTimerDialog; class RandRScreenPrivate; -struct SingleScreenData { - TQString screenFriendlyName; - bool generic_screen_detected; - bool screen_connected; - - TQStringList resolutions; - TQStringList refresh_rates; - TQStringList color_depths; - TQStringList rotations; - - int current_resolution_index; - int current_refresh_rate_index; - int current_color_depth_index; - - float gamma_red; - float gamma_green; - float gamma_blue; - - int current_rotation_index; - int current_orientation_mask; - bool has_x_flip; - bool has_y_flip; - bool supports_transformations; - - bool is_primary; - bool is_extended; - int absolute_x_position; - int absolute_y_position; - int current_x_pixel_count; - int current_y_pixel_count; - - bool has_dpms; - bool enable_dpms; - unsigned int dpms_standby_delay; - unsigned int dpms_suspend_delay; - unsigned int dpms_off_delay; +class SingleScreenData { + public: + SingleScreenData(); + virtual ~SingleScreenData(); + + public: + TQString screenFriendlyName; + bool generic_screen_detected; + bool screen_connected; + + TQStringList resolutions; + TQStringList refresh_rates; + TQStringList color_depths; + TQStringList rotations; + + int current_resolution_index; + int current_refresh_rate_index; + int current_color_depth_index; + + float gamma_red; + float gamma_green; + float gamma_blue; + + int current_rotation_index; + int current_orientation_mask; + bool has_x_flip; + bool has_y_flip; + bool supports_transformations; + + bool is_primary; + bool is_extended; + int absolute_x_position; + int absolute_y_position; + int current_x_pixel_count; + int current_y_pixel_count; + + bool has_dpms; + bool enable_dpms; + unsigned int dpms_standby_delay; + unsigned int dpms_suspend_delay; + unsigned int dpms_off_delay; }; class RandRScreen : public TQObject |