]> git.lyx.org Git - features.git/commitdiff
Set the hourglass cursor for the dialog while running. However, the Cancel button...
authorVincent van Ravesteijn <vfr@lyx.org>
Thu, 14 Jan 2010 01:20:14 +0000 (01:20 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Thu, 14 Jan 2010 01:20:14 +0000 (01:20 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33024 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiCompare.cpp
src/frontends/qt4/GuiCompare.h

index 51a4a65acdb6664b9be8dbc620c92a83b962a744..09139597469be938ccc75fe36574e6d08d32897f 100644 (file)
@@ -66,6 +66,8 @@ GuiCompare::GuiCompare(GuiView & lv)
        progressBar->setValue(0);
        progressBar->setEnabled(false);
 
+       closePB->setCursor(Qt::ArrowCursor);
+
        bc().setPolicy(ButtonPolicy::OkApplyCancelPolicy);
        bc().setOK(okPB);
 }
@@ -170,8 +172,12 @@ QString GuiCompare::browse(QString const & in_name) const
 }
 
 
-void GuiCompare::enableControls(bool enable) const
+void GuiCompare::enableControls(bool enable)
 {
+       // Set the hourglass cursor for the dialog, but
+       // never for the cancel button.
+       setCursor(enable ? Qt::ArrowCursor : Qt::WaitCursor);
+
        newFileLA->setEnabled(enable);
        newFilePB->setEnabled(enable);
        newFileCB->setEnabled(enable);
index 011689049508806179fdc24a6fbdf22b829cfd91..47f70a12abc9153ff2ebc0441e19a4d041a975d0 100644 (file)
@@ -74,7 +74,7 @@ private:
 
 
        /// enable or disable all controls and rename the Close/Cancel button
-       void enableControls(bool enable) const;
+       void enableControls(bool enable);
        
        /// browse for a file
        QString browse(QString const & in_name) const;
@@ -94,9 +94,6 @@ private:
        Buffer const * old_buffer_;
        /// the buffer that will contain the result
        Buffer const * new_buffer_;
-
-       /// the window title
-       mutable QString window_title_;
 };