Code refactor

More flexible tool API
Minor code format fixes
Clipboard freeze fixed(?)
Arrow correcly growing close to the start point
Improve maintainability
Add undo/redo stack
This commit is contained in:
lupoDharkael
2018-04-10 15:33:08 +02:00
parent f9fb7694e5
commit 5746a58582
137 changed files with 2339 additions and 1904 deletions

View File

@@ -16,11 +16,11 @@
// along with Flameshot. If not, see <http://www.gnu.org/licenses/>.
#include "controller.h"
#include "src/capture/widgets/capturewidget.h"
#include "src/widgets/capture/capturewidget.h"
#include "src/utils/confighandler.h"
#include "src/infowindow.h"
#include "src/widgets/infowindow.h"
#include "src/config/configwindow.h"
#include "src/capture/widgets/capturebutton.h"
#include "src/widgets/capture/capturebutton.h"
#include <QFile>
#include <QApplication>
#include <QSystemTrayIcon>
@@ -34,8 +34,7 @@
// Controller is the core component of Flameshot, creates the trayIcon and
// launches the capture widget
Controller::Controller() : m_captureWindow(nullptr)
{
Controller::Controller() : m_captureWindow(nullptr) {
qApp->setQuitOnLastWindowClosed(false);
// init tray icon