Comments (5)
I would prefer adding a separate checkbox (and number box) for this option.
In short adding a configurable feature requires you to:
-
Add (private) variable(s) in
mainwindow.h
-
Add the stuff in
dialog.cpp
(and.h
and.ui
) for the config interface. -
In
mainwindow.cpp
read variables from settings incheckConfig
method.
Inconfig
set variables in dialog, read them back (after ok) and update settings. -
Use them new variables :-)
I think it's a smart thing to do this kind of thing in a separate branch in git.
from qtpass.
Yea, definitely separate branch. Thanks for the pointers, I'll take a look and throw in the towel if the portion of my brain allocated to C++ is overflowed :-)
from qtpass.
A nice example is the first parts of 36507b9 from the templates branch . .
Just the basic boiler-plating for adding (in this case a whole new tab with) new configuration options and checkbox dependent enabling/disabling of a sub-option.
from qtpass.
Alright, I've got something working, but it looks like *.o is in my commit. Need to clean that up and then I will submit pull request.
from qtpass.
Nice work!
from qtpass.
Related Issues (20)
- [BUG] Automatic language selection does not follow system settings
- Passkeys support
- Flatpak on Flathub HOT 2
- [Windows] Git repo not working HOT 2
- [feature request] "Copy name" button HOT 3
- Nextcloud integration + sync HOT 1
- QGuiApplication's supported command-line parameters are taken for a password search request
- Not encrypting to additional users
- Confusion about pass ecosystem HOT 1
- qrencode not found on macOS
- Enable OTP support on mac
- Segfault on wayland HOT 1
- Restore/fix support for Qt4 HOT 3
- Reapair GPG keygen script in (all) translations
- Introduce XKCD style password generator
- Application windows don't show with window icon
- qtpass is unable to decrypt passwords HOT 2
- Copying OTP doesn't work under Wayland
- stop creating .gpg-id
- Silent install switch
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qtpass.