]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
*** empty log message ***
authorvsr <vsr@opencascade.com>
Fri, 28 Dec 2007 15:30:05 +0000 (15:30 +0000)
committervsr <vsr@opencascade.com>
Fri, 28 Dec 2007 15:30:05 +0000 (15:30 +0000)
src/SUIT/SUIT_FileDlg.cxx

index bfb32cb885feed255d4d39b20d48053d2b4c758c..cd23a38d741c04386bee03de8401c3908301bedb 100755 (executable)
@@ -259,12 +259,13 @@ bool SUIT_FileDlg::addWidgets( QWidget* l, QWidget* w, QWidget* b )
   QGridLayout* grid = ::qobject_cast<QGridLayout*>( layout() );
   if ( grid ) {
     int row = grid->rowCount();
+    int columns = grid->columnCount();
     if ( l ) 
       grid->addWidget( l, row, 0 );
     if ( w )
-      grid->addWidget( w, row, 1, 1, 3 );
+      grid->addWidget( w, row, 1, 1, columns-2 );
     if ( b )
-      grid->addWidget( b, row, 5 );
+      grid->addWidget( b, row, columns-1 );
     return true;
   }
   return false;