Mercurial > hg > easyhg
comparison src/mainwindow.cpp @ 442:ff2306c67852
Minor tidy
author | Chris Cannam |
---|---|
date | Tue, 28 Jun 2011 14:33:44 +0100 |
parents | 6a9756700fd1 |
children | 2d57b81671de |
comparison
equal
deleted
inserted
replaced
441:b616c9c6cfd2 | 442:ff2306c67852 |
---|---|
2941 m_helpMenu->addAction(m_aboutAct); | 2941 m_helpMenu->addAction(m_aboutAct); |
2942 } | 2942 } |
2943 | 2943 |
2944 void MainWindow::createToolBars() | 2944 void MainWindow::createToolBars() |
2945 { | 2945 { |
2946 int sz = 32; | |
2947 | |
2946 m_fileToolBar = addToolBar(tr("File")); | 2948 m_fileToolBar = addToolBar(tr("File")); |
2947 m_fileToolBar->setIconSize(QSize(MY_ICON_SIZE, MY_ICON_SIZE)); | 2949 m_fileToolBar->setIconSize(QSize(sz, sz)); |
2948 m_fileToolBar->addAction(m_openAct); | 2950 m_fileToolBar->addAction(m_openAct); |
2949 m_fileToolBar->addAction(m_hgRefreshAct); | 2951 m_fileToolBar->addAction(m_hgRefreshAct); |
2950 m_fileToolBar->setMovable(false); | 2952 m_fileToolBar->setMovable(false); |
2951 | 2953 |
2952 m_repoToolBar = addToolBar(tr(REPOMENU_TITLE)); | 2954 m_repoToolBar = addToolBar(tr("Remote")); |
2953 m_repoToolBar->setIconSize(QSize(MY_ICON_SIZE, MY_ICON_SIZE)); | 2955 m_repoToolBar->setIconSize(QSize(sz, sz)); |
2954 m_repoToolBar->addAction(m_hgIncomingAct); | 2956 m_repoToolBar->addAction(m_hgIncomingAct); |
2955 m_repoToolBar->addAction(m_hgPullAct); | 2957 m_repoToolBar->addAction(m_hgPullAct); |
2956 m_repoToolBar->addAction(m_hgPushAct); | 2958 m_repoToolBar->addAction(m_hgPushAct); |
2957 m_repoToolBar->setMovable(false); | 2959 m_repoToolBar->setMovable(false); |
2958 | 2960 |
2959 m_workFolderToolBar = addToolBar(tr(WORKFOLDERMENU_TITLE)); | 2961 m_workFolderToolBar = addToolBar(tr("Work")); |
2960 addToolBar(Qt::LeftToolBarArea, m_workFolderToolBar); | 2962 addToolBar(Qt::LeftToolBarArea, m_workFolderToolBar); |
2961 m_workFolderToolBar->setIconSize(QSize(MY_ICON_SIZE, MY_ICON_SIZE)); | 2963 m_workFolderToolBar->setIconSize(QSize(sz, sz)); |
2962 m_workFolderToolBar->addAction(m_hgFolderDiffAct); | 2964 m_workFolderToolBar->addAction(m_hgFolderDiffAct); |
2963 m_workFolderToolBar->addSeparator(); | 2965 m_workFolderToolBar->addSeparator(); |
2964 m_workFolderToolBar->addAction(m_hgRevertAct); | 2966 m_workFolderToolBar->addAction(m_hgRevertAct); |
2965 m_workFolderToolBar->addAction(m_hgUpdateAct); | 2967 m_workFolderToolBar->addAction(m_hgUpdateAct); |
2966 m_workFolderToolBar->addAction(m_hgCommitAct); | 2968 m_workFolderToolBar->addAction(m_hgCommitAct); |