Bug 54671

Summary: KCalc does not appear in Window List
Product: [Applications] kcalc Reporter: R (Chandra) Chandrasekhar <chandra>
Component: generalAssignee: Bernd Wuebben <wuebben>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description R (Chandra) Chandrasekhar 2003-02-15 13:07:02 UTC
Version:           1.3.2 (using KDE 3.1.0)
Installed from:     (3.0)
Compiler:          gcc version 2.95.4 20011002 (Debian prerelease)
OS:          Linux (i686) release 2.4.18-bf2.4

Whether I invoke KCalc from a command line using <kcalc &> or from the Start Applications icon or from the Panel, KCalc does not show up on the Window List. in the Panel.

To my knowledge, KCalc is the only application so far that behaves like this.
Comment 1 George Staikos 2003-02-15 21:40:27 UTC
Subject: KDE_3_1_BRANCH: kdeutils/kcalc

CVS commit by staikos: 

Make kcalc a KMainWindow
CCMAIL: 54671-done@bugs.kde.org


  M +3 -3      kcalc.cpp   1.75.2.2
  M +3 -3      kcalc.h   1.39.2.1


--- kdeutils/kcalc/kcalc.cpp  #1.75.2.1:1.75.2.2
@@ -85,5 +85,5 @@ extern bool				display_error;
 //-------------------------------------------------------------------------
 QtCalculator::QtCalculator(QWidget *parent, const char *name)
-        : KDialog(parent, name), inverse(false), hyp_mode(false), eestate(false), 
+        : KMainWindow(parent, name), inverse(false), hyp_mode(false), eestate(false), 
         refresh_display(false), display_size(DEC_SIZE),  angle_mode(ANG_DEGREE), 
         input_limit(0), input_count(0), decimal_point(0), precedence_base(0),
@@ -2307,5 +2307,5 @@ bool QtCalculator::eventFilter(QObject *
         else
         {
-                return KDialog::eventFilter(o, e);
+                return KMainWindow::eventFilter(o, e);
         }
 }

--- kdeutils/kcalc/kcalc.h  #1.39:1.39.2.1
@@ -43,5 +43,5 @@ class DLabel;
 class KPushButton;
 
-#include <kdialog.h>
+#include <kmainwindow.h>
 #include "stats.h"
 
@@ -174,5 +174,5 @@ typedef struct _DefStruct
 
 
-class QtCalculator : public KDialog
+class QtCalculator : public KMainWindow
 {
     Q_OBJECT