Fixed translations and added feedback from PR

This commit is contained in:
Jeremy Borgman
2020-09-03 11:48:01 -05:00
parent be61406e57
commit 286db9ff69
24 changed files with 4449 additions and 2839 deletions

View File

@@ -20,6 +20,7 @@
#include "src/tools/abstracttwopointtool.h"
#include <QPainter>
#include <QPainterPath>
class ArrowTool : public AbstractTwoPointTool {
Q_OBJECT
public:

View File

@@ -62,10 +62,10 @@ QRgb calculate_block_averge(QImage &image, int x_start, int y_start,
assert(x_start + pixel_size < image.width());
assert(y_start + pixel_size < image.height());
auto red_count = 0;
auto blue_count = 0;
auto green_count = 0;
auto pixel_count = 0;
int red_count = 0;
int blue_count = 0;
int green_count = 0;
int pixel_count = 0;
for (auto x = x_start; x < x_start + pixel_size; x++)
{
for (auto y = y_start; y < y_start + pixel_size; y++)
@@ -100,6 +100,11 @@ void BlurTool::process(QPainter &painter, const QPixmap &pixmap,
QImage original_image{source->toImage()};
QImage imageResult{source->toImage()};
unsigned int pixel_size = m_thickness;
if (pixel_size < 1)
{
pixel_size =1;
}
const unsigned int width = source->width();
const unsigned int height = source->height();

View File

@@ -114,7 +114,7 @@ void AppLauncherWidget::launch(const QModelIndex &index) {
tr("Unable to launch in terminal."));
}
} else {
QProcess::startDetached(app_name,{m_tempFile});
QProcess::startDetached(app_name,{m_tempFile});
}
if (!m_keepOpen) {
close();