Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
6
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
hashsum
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Ingemar Ceicer
hashsum
Commits
de73fcd9
Commit
de73fcd9
authored
Jul 21, 2017
by
Ingemar Ceicer
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drag and drop works
Former-commit-id:
52d97e7f
parent
e816aaeb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
22 deletions
+35
-22
code/hash.cpp
code/hash.cpp
+27
-0
code/hash.h
code/hash.h
+8
-0
code/sdi.grc
code/sdi.grc
+0
-22
No files found.
code/hash.cpp
View file @
de73fcd9
...
...
@@ -27,6 +27,8 @@ Hash::Hash(QWidget *parent) :
{
/* draganddrop */
setAcceptDrops
(
true
);
// QMessageBox::aboutQt(this, APPLICATION_NAME " " VERSION);
setStartConfig
();
// File
...
...
@@ -1398,6 +1400,7 @@ void Hash::checksum()
}
delete
k
;
bool
lyckades
=
doChecksum
(
fileNames
[
0
]);
// qDebug() << fileNames[0];
if
(
lyckades
==
false
)
QMessageBox
::
critical
(
this
,
APPLICATION_NAME
" "
VERSION
,
tr
(
"No hash sum could be calculated"
));
}
...
...
@@ -3182,3 +3185,27 @@ QString Hash::getSystem()
v
+=
screen
;
return
v
;
}
/* draganddrop */
void
Hash
::
dropEvent
(
QDropEvent
*
ev
)
{
QString
surl
;
QList
<
QUrl
>
urls
=
ev
->
mimeData
()
->
urls
();
foreach
(
QUrl
url
,
urls
)
{
surl
=
url
.
toString
();
// qDebug()<<surl;
surl
=
QDir
::
toNativeSeparators
(
surl
);
// qDebug()<<surl;
surl
=
surl
.
remove
(
0
,
7
);
bool
lyckades
=
doChecksum
(
surl
);
// qDebug() << fileNames[0];
if
(
lyckades
==
false
)
QMessageBox
::
critical
(
this
,
APPLICATION_NAME
" "
VERSION
,
tr
(
"No hash sum could be calculated"
));
}
}
void
Hash
::
dragEnterEvent
(
QDragEnterEvent
*
ev
)
{
ev
->
accept
();
}
code/hash.h
View file @
de73fcd9
...
...
@@ -28,6 +28,11 @@
#include <QtWidgets>
#include <QTextCodec>
/* draganddrop */
#include <QDropEvent>
#include <QUrl>
#include <QDebug>
#define VERSION_PATH "http://bin.ceicer.com/hash/version.txt"
...
...
@@ -75,6 +80,9 @@ public:
protected:
/* draganddrop */
void
dropEvent
(
QDropEvent
*
ev
);
void
dragEnterEvent
(
QDragEnterEvent
*
ev
);
private:
...
...
code/sdi.grc
deleted
100644 → 0
View file @
e816aaeb
<!DOCTYPE RCC>
<RCC
version=
"1.0"
>
<RCC>
<qresource>
<file>
images/about.png
</file>
<file>
images/compare.png
</file>
<file>
images/copy.png
</file>
<file>
images/debian.png
</file>
<file>
images/english.png
</file>
<file>
images/exit.png
</file>
<file>
images/find.png
</file>
<file>
images/greek.png
</file>
<file>
images/hashsum.ico
</file>
<file>
images/hashsum.png
</file>
<file>
images/help.png
</file>
<file>
images/license.png
</file>
<file>
images/recent.png
</file>
<file>
images/swedish.png
</file>
<file>
images/tysk.png
</file>
<file>
images/update.png
</file>
<file>
images/versionhistory.png
</file>
</qresource>
</RCC>
Ingemar Ceicer
@posktomten
mentioned in commit
8a87c623
·
Dec 25, 2019
mentioned in commit
8a87c623
mentioned in commit 8a87c62361f68c734ed44e8f133d44c53baa5cf6
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment