Преглед изворни кода

Make the dialog wider so UIDs will display

Steve Pieper пре 13 година
родитељ
комит
56e5ea6bbc
1 измењених фајлова са 4 додато и 3 уклоњено
  1. 4 3
      Libs/DICOM/Widgets/ctkDICOMQueryRetrieveWidget.cpp

+ 4 - 3
Libs/DICOM/Widgets/ctkDICOMQueryRetrieveWidget.cpp

@@ -397,13 +397,14 @@ void ctkDICOMQueryRetrieveWidget::updateRetrieveProgress(int value)
     {
     return;
     }
-  if (d->ProgressDialog->width() != 500)
+  static int targetWidth = 700;
+  if (d->ProgressDialog->width() != targetWidth)
     {
     QPoint pp = this->mapToGlobal(QPoint(0,0));
     pp = QPoint(pp.x() + (this->width() - d->ProgressDialog->width()) / 2,
                 pp.y() + (this->height() - d->ProgressDialog->height())/ 2);
-    d->ProgressDialog->move(pp - QPoint((500 - d->ProgressDialog->width())/2, 0));
-    d->ProgressDialog->resize(500, d->ProgressDialog->height());
+    d->ProgressDialog->move(pp - QPoint((targetWidth - d->ProgressDialog->width())/2, 0));
+    d->ProgressDialog->resize(targetWidth, d->ProgressDialog->height());
     }
   d->ProgressDialog->setValue( value );
   logger.error(QString("setting value to %1").arg(value) );