Show
Ignore:
Timestamp:
09/29/07 04:08:39 (14 months ago)
Author:
flynd
Message:

Merged a few fixes from qt4-gui.
- r5444,r5447: Don't mess with mainwin placement, fixes #291.
- r5445: Include delimiter in first part when doing message splitting, fixes #815.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/qt-gui/src/mainwin.cpp

    r5355 r5448  
    12251225    licqConf.LoadFile(buf); 
    12261226 
    1227     int x, y; 
    1228     if(pos().x() < 2 || pos().y() < 2) { 
    1229       // WMaker bug.  will investigate... 
    1230       QPoint p  = mapToGlobal(QPoint(0, 0)); 
    1231  
    1232 //      qDebug("wmaker workaround enabled"); 
    1233  
    1234       x = p.x() - 1 - ( geometry().x() < p.x() ? geometry().x() : 0); 
    1235       y = p.y() - 1 - ( geometry().y() < p.y() ? geometry().y() : 0); 
    1236     } 
    1237     else 
    1238     { 
    1239       x = pos().x(); 
    1240       y = pos().y(); 
    1241     } 
    1242  
    1243     x = x < 0 ? 0 : x; 
    1244     y = y < 0 ? 0 : y; 
    1245  
    12461227    licqConf.SetSection("geometry"); 
    12471228    // I'm not sure if we should really test for negative values... 
    1248     licqConf.WriteNum("x", (unsigned short)x); 
    1249     licqConf.WriteNum("y", (unsigned short)y); 
     1229    licqConf.WriteNum("x", static_cast<short>(x())); 
     1230    licqConf.WriteNum("y", static_cast<short>(y())); 
    12501231    licqConf.WriteNum("h", (unsigned short)(size().height() < 0 ? 0 : (m_bInMiniMode ? m_nRealHeight : size().height()))); 
    12511232    licqConf.WriteNum("w", (unsigned short)(size().width() < 0 ? 0 : size().width()));