radioapp/radioapplication/src/testwindow_win32.cpp
changeset 32 189d20c34778
parent 28 075425b8d9a4
child 33 11b6825f0862
equal deleted inserted replaced
28:075425b8d9a4 32:189d20c34778
    35 #include "radioapplication.h"
    35 #include "radioapplication.h"
    36 #include "radiologger.h"
    36 #include "radiologger.h"
    37 #include "radio_global.h"
    37 #include "radio_global.h"
    38 #include "radioenginewrapper_win32_p.h"
    38 #include "radioenginewrapper_win32_p.h"
    39 
    39 
    40 const int KWindowWidth = 360;
    40 const int WINDOW_WIDTH = 360;
    41 const int KWindowHeight = 640;
    41 const int WINDOW_HEIGHT = 640;
    42 const int KToolbarHeight = 140;
    42 const int TOOLBAR_HEIGHT = 120;
       
    43 const int WINDOW_EXTRA_WIDTH = 5;
    43 
    44 
    44 const QString KBtnDisconnectHeadset = "Disconnect Headset";
    45 const QString KBtnDisconnectHeadset = "Disconnect Headset";
    45 const QString KBtnConnectHeadset = "Connect Headset";
    46 const QString KBtnConnectHeadset = "Connect Headset";
    46 
    47 
    47 const QString KBtnGoOffline = "Go Offline";
    48 const QString KBtnGoOffline = "Go Offline";
   221  * Private slot
   222  * Private slot
   222  */
   223  */
   223 void Win32Window::updateWindowSize()
   224 void Win32Window::updateWindowSize()
   224 {
   225 {
   225     if ( mOrientation == Qt::Horizontal ) {
   226     if ( mOrientation == Qt::Horizontal ) {
   226         resize( KWindowHeight, KWindowWidth + KToolbarHeight );
   227         resize( WINDOW_HEIGHT + WINDOW_EXTRA_WIDTH, WINDOW_WIDTH + TOOLBAR_HEIGHT );
   227     } else {
   228     } else {
   228         resize( KWindowWidth, KWindowHeight + KToolbarHeight );
   229         resize( WINDOW_WIDTH + WINDOW_EXTRA_WIDTH, WINDOW_HEIGHT + TOOLBAR_HEIGHT );
   229     }
   230     }
   230 }
   231 }
   231 
   232 
   232 /*!
   233 /*!
   233  * Private slot
   234  * Private slot