Commits

Aakriti Gupta committed 07743f9

Toolbars created.

  • Participants
  • Parent commits a55ac61

Comments (0)

Files changed (1)

     //Adding widgets
     textEdit = new QPlainTextEdit;
     calendarWidget = new QCalendarWidget;
-   //TODO: Set calendar widget to the left side and text editor to the right side
+    //TODO: Set calendar widget to the left side and text editor to the right side
     setCentralWidget(textEdit);
 
     //adding toolbar
+
     //adding status bar
     //adding menus
 }
+void MainWindow::createToolBars()
+{
+    fileToolBar = addToolBar(tr("File"));
+    fileToolBar->addAction(newFileAct);
+    fileToolBar->addAction(openFileAct);
+    fileToolBar->addAction(saveFileAct);
+
+    editToolBar = addToolBar(tr("Edit"));
+    editToolBar->addAction(cutAct);
+    editToolBar->addAction(copyAct);
+    editToolBar->addAction(pasteAct);
+}
+