Mercurial > hg > easyhg
comparison src/mainwindow.cpp @ 554:930462068dcc find
Start experimentally adding Find button/field
author | Chris Cannam |
---|---|
date | Mon, 20 Feb 2012 18:15:53 +0000 |
parents | 9c8147c9f245 |
children | a1d210c767ab |
comparison
equal
deleted
inserted
replaced
553:9c8147c9f245 | 554:930462068dcc |
---|---|
51 #include "version.h" | 51 #include "version.h" |
52 #include "workstatuswidget.h" | 52 #include "workstatuswidget.h" |
53 #include "hgignoredialog.h" | 53 #include "hgignoredialog.h" |
54 #include "versiontester.h" | 54 #include "versiontester.h" |
55 #include "fswatcher.h" | 55 #include "fswatcher.h" |
56 #include "findwidget.h" | |
56 | 57 |
57 | 58 |
58 MainWindow::MainWindow(QString myDirPath) : | 59 MainWindow::MainWindow(QString myDirPath) : |
59 m_myDirPath(myDirPath), | 60 m_myDirPath(myDirPath), |
60 m_helpDialog(0) | 61 m_helpDialog(0) |
105 #ifndef Q_OS_MAC | 106 #ifndef Q_OS_MAC |
106 cl->setMargin(0); | 107 cl->setMargin(0); |
107 #endif | 108 #endif |
108 | 109 |
109 m_workStatus = new WorkStatusWidget(this); | 110 m_workStatus = new WorkStatusWidget(this); |
110 cl->addWidget(m_workStatus, row++, 0); | 111 cl->addWidget(m_workStatus, row, 0); |
112 | |
113 m_findWidget = new FindWidget(this); | |
114 cl->addWidget(m_findWidget, row++, 1, Qt::AlignRight | Qt::AlignTop); | |
111 | 115 |
112 m_hgTabs = new HgTabWidget(central, m_workFolderPath); | 116 m_hgTabs = new HgTabWidget(central, m_workFolderPath); |
113 connectTabsSignals(); | 117 connectTabsSignals(); |
114 | 118 |
115 cl->addWidget(m_hgTabs, row++, 0); | 119 cl->addWidget(m_hgTabs, row++, 0, 1, 2); |
116 | 120 |
117 connect(m_hgTabs, SIGNAL(selectionChanged()), | 121 connect(m_hgTabs, SIGNAL(selectionChanged()), |
118 this, SLOT(enableDisableActions())); | 122 this, SLOT(enableDisableActions())); |
119 connect(m_hgTabs, SIGNAL(showAllChanged()), | 123 connect(m_hgTabs, SIGNAL(showAllChanged()), |
120 this, SLOT(showAllChanged())); | 124 this, SLOT(showAllChanged())); |
148 | 152 |
149 void MainWindow::closeEvent(QCloseEvent *) | 153 void MainWindow::closeEvent(QCloseEvent *) |
150 { | 154 { |
151 writeSettings(); | 155 writeSettings(); |
152 delete m_fsWatcher; | 156 delete m_fsWatcher; |
157 } | |
158 | |
159 | |
160 void MainWindow::resizeEvent(QResizeEvent *) | |
161 { | |
153 } | 162 } |
154 | 163 |
155 | 164 |
156 QString MainWindow::getUserInfo() const | 165 QString MainWindow::getUserInfo() const |
157 { | 166 { |