- Add a verbose flag and put debugging output being it ("-v" || " --verbose")
- In verbose mode draw a thumbnail of the source image in the bottom left of the window - Add support for long options in the command line parsing - Add a "stretch" argument that will stretch the aspect axis to fit the window when set. For example, in landscape mode the drawn picture will be as wide as the window, cropping the top and bottom
This commit is contained in:
@@ -118,7 +118,10 @@ std::string RandomImageSelector::getNextImage()
|
||||
|
||||
unsigned int RandomImageSelector::selectRandom(const QStringList& images) const
|
||||
{
|
||||
std::cout << "images: " << images.size() << std::endl;
|
||||
if(_debugMode)
|
||||
{
|
||||
std::cout << "images: " << images.size() << std::endl;
|
||||
}
|
||||
if (images.size() == 0)
|
||||
{
|
||||
throw std::string("No jpg images found in given folder");
|
||||
|
||||
Reference in New Issue
Block a user