Reply
Thread Tools
sifo's Avatar
Posts: 1,359 | Thanked: 1,292 times | Joined on Oct 2011 @ Tartus.Syria
#11
yeah there is something wrong with the icon according to .desktop file wiki when alot of chars appears in the file that would be from a wrong size or format !

oh and i really wanna thank you for the source i found something i need

hope this help
__________________
[ N900-Crack ] [ The Purge ] [ New Smiles ] [ New icons ] [ ? ]
" Hey ! I've just met you and this is crazy, so install cssu maybe ? "
Please help out keeping Maemo.org alive, and consider donating.
https://www.facebook.com/ZoRk7

Last edited by sifo; 2012-07-14 at 21:49.
 
Posts: 2,290 | Thanked: 4,133 times | Joined on Apr 2010 @ UK
#12
Originally Posted by sifo View Post
yeah there is something wrong with the icon according to .desktop file wiki when alot of chars appears in the file that would be from a wrong size or format !
I resized as per wiki recommendations and it's a .png
__________________

Wiki Admin
sixwheeledbeast's wiki
Testing Squad Subscriber
- mcallerx - tenminutecore - FlopSwap - Qnotted - zzztop - Bander - Fight2048 -


Before posting or starting a thread please try this.
 
Posts: 1,100 | Thanked: 2,797 times | Joined on Apr 2011 @ Netherlands
#13
That the executable ended up in /opt/ereswapgui/bin/ereswapgui/ereswapgui is probably wrong, it should have been /opt/ereswapgui/bin/ereswapgui (the desktop item refers to the last, that's why it does not start pressing the program in the menu),

The buttons have probably hardcoded positions when they where created in QT creator. To avoid that you should place them in a grid, or redraw them depending on portrait or landscape position. I know a little QT/C++ coding, but my QT creator knowledge is even worse

About the QProcess error you get, perhaps it helps to replace:

Code:
void MainWindow::on_pushButtonFreswap_clicked()
{
    QProcess process;
        process.start("sh freeswap");
        process.waitForFinished();
}
with:

Code:
void MainWindow::on_pushButtonFreswap_clicked()
{
    QProcess *process;
    process = new QProcess( this );
    process->start("sh freeswap");
    process->waitForFinished();
}
The deb file I created was just see if it was generatable from QT Creator, which was new for me too. Best is that you give it a go yourself.
 

The Following 2 Users Say Thank You to ade For This Useful Post:
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#14
Originally Posted by sixwheeledbeast View Post
Well, no the code doesn't "work" properly, see below.

Firstly it will not automatically install dependencies have to manually install ereswap first.
This one is related to .deb control file, and trivial to fix, so You can leave it for later, and don't worry about it now

Originally Posted by sixwheeledbeast View Post
.desktop must be wrong as it will not start from launcher menu.
But it will start via
Code:
/opt/ereswapgui/bin/ereswapgui/ereswapgui
Also the .desktop icon is not working
Those are also easy fixable after having code ready for release, so You can ignore it for now, too.

Originally Posted by sixwheeledbeast View Post
The four buttons load up but they don't do anything.
Terminal spits out
Code:
QProcess: Destroyed while process is still running
The Mainwindow is still called MainWindow even tho I was sure I renamed it.

UI doesn't redraw on rotation to portrait or back again, which I thought would work.

Oh well
Here my knowledge ends But it seems, that ade's ideas are good start. Despite what he said, he already achieved nice feats with developing, (ones, that I can only dream about) so listen to him.

BTW, keeping my thumbs for it, and I'm honored, that You've took my little set of scripts as guinea pig

/Estel
__________________
N900's aluminum backcover / body replacement
-
N900's HDMI-Out
-
Camera cover MOD
-
Measure battery's real capacity on-device
-
TrueCrypt 7.1 | ereswap | bnf
-
Hardware's mods research is costly. To support my work, please consider donating. Thank You!
 

The Following 2 Users Say Thank You to Estel For This Useful Post:
Posts: 2,290 | Thanked: 4,133 times | Joined on Apr 2010 @ UK
#15
Originally Posted by Estel View Post
This one is related to .deb control file, and trivial to fix, so You can leave it for later, and don't worry about it now

Those are also easy fixable after having code ready for release, so You can ignore it for now, too.
Yep, I realised what these issues where.

Originally Posted by Estel View Post
Here my knowledge ends But it seems, that ade's ideas are good start. Despite what he said, he already achieved nice feats with developing, (ones, that I can only dream about) so listen to him.
QFA

Originally Posted by Estel View Post
BTW, keeping my thumbs for it, and I'm honored, that You've took my little set of scripts as guinea pig
I was trying to think of something that would use scripts I understand and
trigger them via GUI, as this can be adaptable into many ideas I have.
Hence using QProcess.

I thought I'd have a shot looking at others sources, but it's well past my current skills. Hence what I have completed so far.

TBH I have not given up, but it's very difficult to study, research and work on it at the moment due to having a poor and unstable internet connection (long story) and my job.

I think ade has given me the info required to try and get the scripts running. Thanks for all the help and support.
__________________

Wiki Admin
sixwheeledbeast's wiki
Testing Squad Subscriber
- mcallerx - tenminutecore - FlopSwap - Qnotted - zzztop - Bander - Fight2048 -


Before posting or starting a thread please try this.
 

The Following User Says Thank You to sixwheeledbeast For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 14:44.