Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Krita
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mathias Wein
Krita
Commits
4c7d6916
Commit
4c7d6916
authored
May 06, 2007
by
Casper Boemann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix initial resolution in custom document dialog
svn path=/trunk/koffice/; revision=661670
parent
3155e4af
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
krita/ui/kis_config.cc
krita/ui/kis_config.cc
+3
-3
krita/ui/wdgnewimage.ui
krita/ui/wdgnewimage.ui
+1
-1
No files found.
krita/ui/kis_config.cc
View file @
4c7d6916
...
...
@@ -29,7 +29,7 @@
#include "kis_config.h"
namespace
{
const
double
IMG_DEFAULT_RESOLUTION
=
100.0
;
const
double
IMG_DEFAULT_RESOLUTION
=
100.0
;
// dpi
const
qint32
IMG_DEFAULT_WIDTH
=
512
;
const
qint32
IMG_DEFAULT_HEIGHT
=
512
;
const
enumCursorStyle
DEFAULT_CURSOR_STYLE
=
CURSOR_STYLE_OUTLINE
;
...
...
@@ -116,7 +116,7 @@ qint32 KisConfig::defImgHeight() const
double
KisConfig
::
defImgResolution
()
const
{
return
m_cfg
.
readEntry
(
"imgResolutionDef"
,
IMG_DEFAULT_RESOLUTION
);
return
m_cfg
.
readEntry
(
"imgResolutionDef"
,
IMG_DEFAULT_RESOLUTION
)
/
72.0
;
}
void
KisConfig
::
defImgWidth
(
qint32
width
)
...
...
@@ -131,7 +131,7 @@ void KisConfig::defImgHeight(qint32 height)
void
KisConfig
::
defImgResolution
(
double
res
)
{
m_cfg
.
writeEntry
(
"imgResolutionDef"
,
res
);
m_cfg
.
writeEntry
(
"imgResolutionDef"
,
res
*
72.0
);
}
enumCursorStyle
KisConfig
::
cursorStyle
()
const
...
...
krita/ui/wdgnewimage.ui
View file @
4c7d6916
...
...
@@ -139,7 +139,7 @@
<item>
<widget class="QLabel" name="lblResolution" >
<property name="text" >
<string>
&
Resolution:</string>
<string>Resolution:</string>
</property>
</widget>
</item>
...
...
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