[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdegraphics/kdvi
From:       Stefan Kebekus <stefan.kebekus () uni-bayreuth ! de>
Date:       2005-02-01 5:57:00
Message-ID: 20050201055700.24B691D1FC () office ! kde ! org
[Download RAW message or body]

CVS commit by kebekus: 

fixes statusbar issue


  M +29 -31    dviWidget.cpp   1.6
  M +9 -17     kdvi_multipage.cpp   1.166
  M +1 -1      main.cpp   1.11


--- kdegraphics/kdvi/dviWidget.cpp  #1.5:1.6
@@ -62,15 +62,16 @@ void DVIWidget::mousePressEvent(QMouseEv
 void DVIWidget::mouseMoveEvent(QMouseEvent* e)
 {
-  // Call implementation from parent
-  documentWidget::mouseMoveEvent(e);
-
   // pageNr == 0 indicated an invalid page (e.g. page number not yet set)
   if (pageNr == 0)
     return;
 
+  // Call the standard implementation
+  documentWidget::mouseMoveEvent(e);
+  
+  // Analyze the mouse movement only if no mouse button was pressed
+  if ( e->state() == 0 ) {
   // Get a pointer to the page contents
   documentPage* pageData = documentCache->getPage(pageNr);
-  if (pageData == 0) 
-  {
+    if (pageData == 0) {
     kdDebug(4300) << "DVIWidget::mouseMoveEvent(...) pageData for page #" << pageNr \
<< " is empty" << endl;  return;
@@ -78,8 +79,6 @@ void DVIWidget::mouseMoveEvent(QMouseEve
 
   // Check if the cursor hovers over a sourceHyperlink.
-  for(unsigned int i=0; i<pageData->sourceHyperLinkList.size(); i++) 
-  {
-    if (pageData->sourceHyperLinkList[i].box.contains(e->pos())) 
-    {
+    for(unsigned int i=0; i<pageData->sourceHyperLinkList.size(); i++) {
+      if (pageData->sourceHyperLinkList[i].box.contains(e->pos())) {
       clearStatusBarTimer.stop();
 
@@ -98,6 +97,5 @@ void DVIWidget::mouseMoveEvent(QMouseEve
     }
   }
-  if (!clearStatusBarTimer.isActive())
-    clearStatusBarTimer.start( 200, TRUE ); // clear the statusbar after 200 msec.
+  }
 }
 

--- kdegraphics/kdvi/kdvi_multipage.cpp  #1.165:1.166
@@ -86,29 +86,21 @@ KDVIMultiPage::KDVIMultiPage(QWidget *pa
 KAboutData* KDVIMultiPage::createAboutData()
 {
-  KAboutData* about = new KAboutData("kdvi", I18N_NOOP("KDVI"), "1.2",
+  KAboutData* about = new KAboutData("kdvi", I18N_NOOP("KDVI"), "1.3",
                       I18N_NOOP("A previewer for Device Independent files (DVI \
files) produced by the TeX typesetting system."),  KAboutData::License_GPL,
                      "Markku Hinhala, Stephan Kebekus",
-                     I18N_NOOP("Displays Device Independent (DVI) files."
-                         "Based on original code from kdvi version 0.43 and \
xdvik.")); +                     I18N_NOOP("This program displays Device Independent \
(DVI) files which are produced by the TeX typesetting system. " +                     \
"KDVI 1.2 is based on original code from KDVI version 0.43 and xdvik."));  
   about->addAuthor ("Stefan Kebekus",
-                    I18N_NOOP("Current Maintainer.\n"
-                              "Major rewrite of version 0.4.3.\n"
-                              "Implementation of hyperlinks. "),
+                    I18N_NOOP("Current Maintainer."),
                     "kebekus@kde.org",
                     "http://www.mi.uni-koeln.de/~kebekus");
 
-  about->addAuthor ("Markku Hinhala",
-                    I18N_NOOP("Author of kdvi 0.4.3"));
-
-  about->addAuthor ("Nicolai Langfeldt",
-                    I18N_NOOP("Maintainer of xdvik"));
-
-  about->addAuthor ("Paul Vojta",
-                    I18N_NOOP("Author of xdvi"));
-
-  about->addCredit ("Philipp Lehmann",
-                    I18N_NOOP("testing and bug reporting."));
+  about->addAuthor ("Markku Hinhala", I18N_NOOP("Author of kdvi 0.4.3"));
+  about->addAuthor ("Nicolai Langfeldt", I18N_NOOP("Maintainer of xdvik"));
+  about->addAuthor ("Paul Vojta", I18N_NOOP("Author of xdvi"));
+  about->addCredit ("Philipp Lehmann", I18N_NOOP("Testing and bug reporting."));
+  about->addCredit ("Wilfried Huss", I18N_NOOP("Re-organisation of source code."));
 
   return about;

--- kdegraphics/kdvi/main.cpp  #1.10:1.11
@@ -30,5 +30,5 @@ int main(int argc, char** argv)
   KAboutData about ("kdvi", I18N_NOOP("KDVI"), "1.2",
                     description, KAboutData::License_GPL,
-                    "Markku Hinhala, Stephan Kebekus",
+                    "Markku Hinhala, Stefan Kebekus",
                     I18N_NOOP("Displays Device Independent (DVI) files."
                     "Based on original code from kdvi version 0.43 and xdvik."));


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic