From 8ac0e970e4464d9f8f73c0fb34a178ff135be8c3 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 2 Jun 2024 23:07:22 +0900 Subject: Rename ntqwidget* related files to equivalent tqwidget* Signed-off-by: Michele Calgaro --- doc/html/tutorial2-05.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'doc/html/tutorial2-05.html') diff --git a/doc/html/tutorial2-05.html b/doc/html/tutorial2-05.html index 98f29edd7..b6f5302fc 100644 --- a/doc/html/tutorial2-05.html +++ b/doc/html/tutorial2-05.html @@ -263,17 +263,17 @@ menu by calling updateRecentFilesMenu(); (we'll review this later on).

Now that we have set the chart type (when we read it in as a user setting) it is safe to connect the chart group to our updateChartType() slot. -

        resize( windowWidth, windowHeight );
+

        resize( windowWidth, windowHeight );
         if ( windowX != -1 || windowY != -1 )
-            move( windowX, windowY );
+            move( windowX, windowY );
 

And now that we know the window size and position we can resize and move the chart form's window accordingly.

        m_canvas = new TQCanvas( this );
-        m_canvas->resize( width(), height() );
+        m_canvas->resize( width(), height() );
         m_canvasView = new CanvasView( m_canvas, &m_elements, this );
         setCentralWidget( m_canvasView );
-        m_canvasView->show();
+        m_canvasView->show();
 

We create a new TQCanvas and set its size to that of the chart form window's client area. We also create a CanvasView (our own subclass @@ -301,7 +301,7 @@ call ensures that a status bar is created for this main window.

    void ChartForm::init()
     {
-        setCaption( "Chart" );
+        setCaption( "Chart" );
         m_filename = TQString::null;
         m_changed = FALSE;
 
@@ -534,11 +534,11 @@ and edit values, value colors, etc.
     {
         OptionsForm *optionsForm = new OptionsForm( this );
         optionsForm->chartTypeComboBox->setCurrentItem( m_chartType );
-        optionsForm->setFont( m_font );
+        optionsForm->setFont( m_font );
 
        if ( optionsForm->exec() ) {
             setChartType( ChartType(
                     optionsForm->chartTypeComboBox->currentItem()) );
-            m_font = optionsForm->font();
+            m_font = optionsForm->font();
 
            drawElements();
         }
         delete optionsForm;
-- 
cgit v1.2.1